Showing results for 
Search instead for 
Did you mean: 
Level: Powered On

Archiving files on SharePoint before saving email attachments


I am trying to create a flow that would do the following


1. Watch for new email with attachment in specified Outlook folder 

2. When received, move files from certain SharePoint folder 1 to folder 2

3. Save email attachment to SharePoint folder 1

4. Delete email 


I am able to create a flow that does 1,3 and 4 but unable to add in a step to move files between folders in between 1 and 3. 





Any help is appreciated.  Thanks. 

Community Support Team
Community Support Team

Re: Archiving files on SharePoint before saving email attachments

Hi gprocks,


I am not sure with your step2, do you want to move the attachment from folder1 to folder2 after it has been created in folder1?

If yes, you may try to add an action “SharePoint – Copy file” to move the file between two folders.

About the “Delete email” action, please click the button “Add an action” under the action “Create file”, and select the dynamic content “Message Id” for the Message Id field.



Please try this on your side and feel free post back if you need more help.


Best regards,
Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Level: Powered On

Re: Archiving files on SharePoint before saving email attachments

Thanks Mabel


The step 2 needs to run on the existing file in the SharePoint folder prior to saving the attachment from the new email. 


Basically, I receive emails with the same file on a scheduled basis but each email contains the latest version of the file. So when a new version arrives, I would like to archive the older one and save the new one instead.  The file names are always different so it doesn't overwrite the original file but rather creates multiple copies. 




Helpful resources


Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!


Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!


New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!


Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!


Microsoft Learn

Learn how to build the business apps that you need.


Power Platform World Tour

Find out where you can attend!


Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors
Users online (4,515)