Showing results for 
Search instead for 
Did you mean: 
Level: Power Up

Renaming file while saving from Outlook to OneDrive

We receieve daily emails with an attachment which I would like to rename to a standardized name to overwrite in the OneDrive (to have the latest version and avoid many files). Is there a way to do this? Files are PDF. Thank you very much for any help.


Re: Renaming file while saving from Outlook to OneDrive



Yes this is possible.

When using the "create file" - action. You can assign as file name, and here the magic is happening.


You can write your own file name, but then the process will overwrite the file every day. But you can also add some date/time format information, see example.




I hope this helps for you.




Frederik Bisback




Re: Renaming file while saving from Outlook to OneDrive

Hello, @bpownall!

Thank you for posting on the Flow Community Forum! Have you had an opportunity to apply @frederikbisback‘s recommendation to adapt your Flow? If yes, and you find that solution to be satisfactory, please go ahead and click “Accept as Solution” so that this thread will be marked for other users to easily identify!

Thank you for being an active member of the Flow Community!

Flow Community Manager

Microsoft Power Automate Community Manager
Are YOU a member of your local Power Automate User Group?
Fill out This Form to claim your Community User Group Member Badge!
Level: Power Up

Re: Renaming file while saving from Outlook to OneDrive

Still struggling a bit I apologize. I would actually like it to overwrite each day so I only have the most current version. How do I input my own custom name? It does not appear that I can just type it in? What happens when I just type in the name is it saves as a file but has no extension (emailed file is a PDF)



Re: Renaming file while saving from Outlook to OneDrive

File will be overwritten by the new content.

Helpful resources


Power Automate Community User Group Member Badge

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


Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!


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 Kudoed Authors (Last 30 Days)
Users online (5,550)