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

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
Super User
Super User

Re: When a file is modified in Sharepoint

Hi @MFR136 

 

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





Did I answer your question? Mark my post as a solution!

Proud to be a Flownaut!





4 REPLIES 4
Super User
Super User

Re: When a file is modified in Sharepoint

Hi @MFR136 

 

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





Did I answer your question? Mark my post as a solution!

Proud to be a Flownaut!





MFR136
Level: Powered On

Re: When a file is modified in Sharepoint

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.

Super User
Super User

Re: When a file is modified in Sharepoint

Hi @MFR136 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





Did I answer your question? Mark my post as a solution!

Proud to be a Flownaut!





MFR136
Level: Powered On

Re: When a file is modified in Sharepoint

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.

>