web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Automate
Answered

Autosave flow

(0) ShareShare
ReportReport
Posted on by

Hello.

 

Is it possible to create a flow that automatically saves attachments for a month, and when a new month arrives, creates a new folder and stores the new ones there? Example; in november there will be 10 attachments, and in december there will be 11. Can these be divided into folders automatically? and can this flow continue to create folders based on the month the email was received?

Categories:
I have the same question (0)
  • VJR Profile Picture
    7,635 on at

    Hi @Anonymous 

     

    - For getting the month name you can make use of below in Expressions

    formatDateTime(utcNow(),'MMMM') which gives the result November

     

    - I am assuming you want to create folders in the Windows file system (and not on Sharepoint or OneDrive)

    In that case take a look at this link for the File Systems Connector

     

    Haven't tried, but in that link it says...

    - Select the Action to Create File.

    The folder path specified will be created if it does not exist.

     

     

  • Community Power Platform Member Profile Picture
    on at

    Hi.

     

    I want to create a folder in OneDrive, November, for attachments recvived in November, and folder for December for attachment recvived in Desember, and so on.

     

    Im using Kutools now, but if i can use flows, i prefer that:)

  • VJR Profile Picture
    7,635 on at

    For creating folders you can take a look at the Solution marked in this post

    https://powerusers.microsoft.com/t5/Building-Flows/Create-a-folder-in-OneDrive/td-p/318736

  • Community Power Platform Member Profile Picture
    on at

    Thanks, but creating folders, is ok, but the problem is when is got to make folders on months when recvive mail. Has tryed to set up a flow, but no luck 😛

     

    Maybe my expectations was to high:)

  • VJR Profile Picture
    7,635 on at

    Hi @Anonymous 

     

    If you want to create folders when an email is received then use the "When an email is received" trigger of Power Automate.

     

    You can check any of the in-built templates 

     

    Save email attachments to a SharePoint library and receive a notification 

     

    Save new email attachments in SharePoint and add a row to Excel

     

    So when the incoming of email is triggered do the folder creation part.

  • Verified answer
    v-LilyW-msft Profile Picture
    on at

    Hi @Anonymous 

    According to your description, I set up a simple flow, you can refer to the screenshots below to see if it helps.

    vLilyWmsft_4-1637055005878.png

    vLilyWmsft_1-1637054494057.png

    Expression:

    formatDateTime(body('Convert_time_zone'),'yyyy-MM')
     
    Save and test the flow.
    When a new email with attachment arrives.
    vLilyWmsft_2-1637054585615.png

     

    The file will be saved in 2021-11(No need to manually create the '2021-11' folder, flow will be created automatically )

    vLilyWmsft_3-1637054672198.png

    If you receive the email in December, the attachment will be saved in '2021-12' folder.

    Hope the content above may help you.

    Best Regards

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 398 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 323 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 183 Most Valuable Professional

Last 30 days Overall leaderboard