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

When a file is modified in Sharepoint

I'm trying to create a Flow, wherein if in one Sharepoint team's folder the SOP is updated/replaced, it will also copy/overwrite the same file in another Sharepoint team's folder. The document needs to be kept in 2 places, but I am trying to eliminate having to perform overwriting the file twice, all the time.

 

Appreciate any help. Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @Anonymous 

 

Flow has a native "Copy File" action built for SharePoint which will copy a file from one location to another. One of the properties available on this is the ability to decide what happens if the file already exists. The one you'll want is to replace.

 

CopyFile.PNG

 

If you have found this post useful, please give it a thumbs up. If it has answered your question, please accept it as the solution so others can benefit.

@MattWeston365

View solution in original post

4 REPLIES 4

Hi @Anonymous 

 

Flow has a native "Copy File" action built for SharePoint which will copy a file from one location to another. One of the properties available on this is the ability to decide what happens if the file already exists. The one you'll want is to replace.

 

CopyFile.PNG

 

If you have found this post useful, please give it a thumbs up. If it has answered your question, please accept it as the solution so others can benefit.

@MattWeston365

Anonymous
Not applicable

Hi @MattWeston365 thanks!

 

But I was looking for the Trigger actually, that when a specific file gets modified, it would trigger this 'copy file' action.

Hi @Anonymous you can use the "When a file is added or created" SharePoint trigger. That will then fire the Flow whenever you make a change to the file, and therefore you can copy it to your other location.

 

If you have found this post useful, please give it a thumbs up. If it has answered your question, please accept it as the solution so others can benefit.

@MattWeston365

Anonymous
Not applicable

Hi @MattWeston365,

 

"When a file is created or modified [in a folder]" functions for all files within a folder. It does not work on a specific file. With what I am doing, the files in the 2 folders are not completely identical. So, I was looking for something that will only work for 1 specific file, not all the files within the folder.

 

Anyway, thanks for the help.

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Users online (5,695)