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 my reply help? Please give it a thumbs up.
Did I answer your question? Please mark my post as a solution!


Proud to be a Flownaut!





Community Leader: Black Country PowerApps & Flow User Group

View solution in original post

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 my reply help? Please give it a thumbs up.
Did I answer your question? Please mark my post as a solution!


Proud to be a Flownaut!





Community Leader: Black Country PowerApps & Flow User Group

View solution in original post

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 my reply help? Please give it a thumbs up.
Did I answer your question? Please mark my post as a solution!


Proud to be a Flownaut!





Community Leader: Black Country PowerApps & Flow User Group

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.

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

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

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 304 members 1,576 guests
Please welcome our newest community members: