Notifications when file is moved between Teams folders?

%3CLINGO-SUB%20id%3D%22lingo-sub-1114874%22%20slang%3D%22en-US%22%3ENotifications%20when%20file%20is%20moved%20between%20Teams%20folders%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1114874%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EI%20know%20how%20to%20set%20upp%20for%20email%20notifications%20when%20a%20file%20is%20uploaded%20or%20edited%2C%20but%20when%20you%20move%20a%20file%20to%20another%20folder%20(where%20you%20have%20set%20up%20for%20email%20notifications)%20in%20the%20same%20Team%20you%20are%20not%20getting%20an%20emails%20for%20this%20moved%20file.%20Is%20it%20possible%20to%20that%20in%20Teams%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1114874%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EEmail%20Notifications%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFiles%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EHow-to%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMove%20files%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1114932%22%20slang%3D%22en-US%22%3ERe%3A%20Notifications%20when%20file%20is%20moved%20between%20Teams%20folders%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1114932%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F522545%22%20target%3D%22_blank%22%3E%40Lauris_Swe%3C%2FA%3E%20%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20process%20of%20moving%20a%20file%20deletes%20it%20from%20its%20location%20in%20SharePoint%20and%20re-creates%20it%20in%20the%20new%20location%3F%20Does%20the%20alert%20in%20SharePoint%20not%20tell%20you%20when%20the%20new%20file%20has%20been%20created%3F%20Could%20you%20set%20up%20one%20for%20deletes%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20looked%20for%20a%20Flow%20in%20Power%20Automate%20to%20do%20this%20but%20there%20isnt%20one%20that%20I%20can%20find%20that%20handles%20a%20move%20of%20a%20file.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESorry%20not%20much%20help.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1115702%22%20slang%3D%22en-US%22%3ERe%3A%20Notifications%20when%20file%20is%20moved%20between%20Teams%20folders%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1115702%22%20slang%3D%22en-US%22%3ESo%20I%20can't%20provide%20exact%20instructions%20but%20from%20a%20high%20level%20point%20of%20view%2C%20currently%20you%20can't%20use%20Flow%20in%20Power%20Automate%20to%20get%20previous%20values%20from%20built%20in%20Actions%20yet.%20But%20you%20can%20use%20Send%20an%20http%20request%20to%20SharePoint%20and%20pull%20a%20previous%20value%20using%20version%20history.%20You%20can%20basically%20pull%20the%20folder%20path's%20to%20before%20and%20after%20and%20then%20base%20an%20action%20on%20that%20if%20it's%20true%20etc.%20%3CBR%20%2F%3E%3CBR%20%2F%3EIt's%20doable%20just%20a%20bit%20tedious.%3CBR%20%2F%3E%3CBR%20%2F%3EThis%20article%20kind%20of%20explains%20the%20previous%20version%20thing.%20%3CBR%20%2F%3E%3CA%20href%3D%22http%3A%2F%2Fjohnliu.net%2Fblog%2F2018%2F5%2Fmicrosoft-flow-sharepoint-trigger-on-specific-fields-changed-via-sp-http-request%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttp%3A%2F%2Fjohnliu.net%2Fblog%2F2018%2F5%2Fmicrosoft-flow-sharepoint-trigger-on-specific-fields-changed-via-sp-http-request%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EBut%20you%20can%20take%20that%20idea%20and%20get%20previous%20folder%20value%20and%20then%20the%20current%20one%2C%20and%20act%20on%20if%20it%20changes%20from%20one%20value%20is%20true%20to%20another%20value%20to%20then%20trigger%20notification.%3C%2FLINGO-BODY%3E
Occasional Visitor

Hi,

I know how to set up for email notifications when a file is uploaded or edited, but when you move a file to another folder (where you have set up for email notifications) in the same Team you are not getting an email for this moved file. Is it possible to do that in Teams?

2 Replies

Hi @Lauris_Swe ,

 

The process of moving a file deletes it from its location in SharePoint and re-creates it in the new location? Does the alert in SharePoint not tell you when the new file has been created? Could you set up one for deletes?

 

I have looked for a Flow in Power Automate to do this but there isnt one that I can find that handles a move of a file. 

 

Sorry not much help. 

So I can't provide exact instructions but from a high level point of view, currently you can't use Flow in Power Automate to get previous values from built in Actions yet. But you can use Send an http request to SharePoint and pull a previous value using version history. You can basically pull the folder path's to before and after and then base an action on that if it's true etc.

It's doable just a bit tedious.

This article kind of explains the previous version thing.
http://johnliu.net/blog/2018/5/microsoft-flow-sharepoint-trigger-on-specific-fields-changed-via-sp-h...

But you can take that idea and get previous folder value and then the current one, and act on if it changes from one value is true to another value to then trigger notification.