cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
royaanon
New Member

Autosave flow

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?

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @royaanon 

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

View solution in original post

6 REPLIES 6
VJR
Memorable Member
Memorable Member

Hi @royaanon 

 

- 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.

 

 

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
Memorable Member
Memorable Member

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

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
Memorable Member
Memorable Member

Hi @royaanon 

 

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.

Hi @royaanon 

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

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Users online (947)