cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

Save attachment to One Drive and OVERWRITE an existing file.

Hi,

 

Just wanting some help to get a flow to overwrite a file in OneDrive.

 

I've successfully got it saving the attachment automatically from an incoming email straight to OneDrive but I cant get it to overwrite the existing file.

 

If it can be done can you tell me how?

 

Or if it cant be done using OneDrive can it be done elsewhere?

 

PS - I then have the file picked up by Power Bi.

Thanks 🙂

4 REPLIES 4
Highlighted
Community Support
Community Support

Re: Save attachment to One Drive and OVERWRITE an existing file.

Hi @MindyandTeddy,

 

Could you please share a screenshot of your flow’s configuration?

Do you want to overwrite the file with same file name or different file name?

Further, how many files has existed in your OneDrive folder?

 

If you want to overwrite the file with same file name, please take a try with the following workaround:4.JPG

Note: If there is an existing file with same file name, the existing file will be overwritten with new file via the flow automatically.

 

The flow works successfully as below:5.JPG

 

If you want to overwrite the existing file with different file name and there is only one file existed in your OneDrive folder, please take a try with the following workaround:6.JPG

The flow works successfully as below:7.JPG

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Anonymous
Not applicable

Re: Save attachment to One Drive and OVERWRITE an existing file.

Hi Kris, 

 

Thank you so much. Your screenshots were super helpful and it is now working. Very grateful for your assistance, thank you!

Highlighted
New Member

Re: Save attachment to One Drive and OVERWRITE an existing file.

Your explanations are excellent.

 

I have a slightly different situation:  i have a flow when multiple users working on the same file (multiple laptops) and than they save it on their One Drive for Business account.  I need flow to copy file to a Shared folder, but I need to set a validation to check time stamp and only overwrite file if the modification time is greater than the file that already in the folder.

Do you think its possible to achieve it with Flow?

 

Appreciate your response.

Highlighted
Frequent Visitor

Re: Save attachment to One Drive and OVERWRITE an existing file.

Is it possible to save an xlsx doc this way?

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

Join the new Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

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

thirdimage

Power Automate Community User Group Member Badge

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

Top Solution Authors
Top Kudoed Authors
Users online (7,071)