cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Mike8
Solution Sage
Solution Sage

Trigger on move file in Sharepoint event

Hello everyone,

I am using the Sharepoint trigger "When a file is created or modified (properties only)".
When I create a file, it triggers.
When I rename a file, it triggers.

The issue is that it does not trigger when I move an existing file from a folder to an other folder under the same Library.
Do you know a way to trigger a Flow on this event?

Thank you

5 REPLIES 5
Brad_Groux
Super User II
Super User II

Have you tried When a file is created in a folder or When a file is created or modified in a folder?

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

v-lin-msft
Post Prodigy
Post Prodigy

Hi @Mike8,

 

When I tested the trigger, I moved newly uploaded files from one folder to another, it can work. However, the previously created Library or files uploaded a long time ago be used for testing, the trigger will not work.Annotation 2019-05-17 154120.png

 

Best Regards,

Community Support Team _ Lin Tu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hello,

Thank you both for your replies.
@Brad_Groux : I would like to trigger the flow also for newly created or modified files in the subfolders. I think only the (properties only) trigger provides this functionality.

@v-lin-msft : This gives me hope. So, should I create the a new library? When the library becomes 'old' will it work? 🙂
Do you have any advice? 


What I would like, as I have written on the first post ,is to trigger a flow :
When I create a file, (also for the subfolders) --DONE
When I modify a file, (also for the subfolders) --DONE
When I move an existing file from a folder to an other folder under the same Library. --Still trying to figure this out

Thank you.

To move previously created files you can Manually trigger a Flow or you can Run a flow on a schedule, and then you can use either Copy file with an Apply to Each or you can use a Copy folder action - example: ManuallyTriggerAFlow.PNG

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

@Mike8 Did you ever figure out a solution for getting trigger on moving a file into a folder?

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Users online (38,539)