Notifications when file is moved between Teams folders?

Copper Contributor

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.