Forum Discussion
Lauris_Swe
Jan 17, 2020Copper Contributor
Notifications when file is moved between Teams folders?
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 ar...
Jan 17, 2020
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-http-request
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.
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-http-request
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.