Forum Discussion
Juan M Baena
Mar 11, 2019Iron Contributor
Workflow for email notifications
Good Day This is long shot for this open making a number of assumptions. When it comes to actions like someone being mentioned in a modern page or when someone clicks the star icon to follow a si...
TimLB
Mar 11, 2019Steel Contributor
Big IF (because not sure about some of the ability to attach to known UI on modern pages)... but if I were going to do this I would use the SharePoint workbench to create a webpart/script to attach to the existing UI pieces to override the behavior to customize the follow process, the follow API is out there (https://docs.microsoft.com/en-us/sharepoint/dev/general-development/how-to-follow-documents-sites-and-tags-by-using-the-rest-service-in-sharepoint-2) then after the API calls return successful - call a flow that could be triggered by hitting a REST URL.
@Mentions in comments in pages already have notifications associated with them (at least where people have them turned on... this might be a teams profile setting that carries into other areas). The comments are enumerated at the page level via REST APIs as well though. https://www.vrdmn.com/2017/07/working-with-page-comments-rest-api-in.html so workflows could be triggered by watching for them via a scheduled flow potentially.
@Mentions in comments in pages already have notifications associated with them (at least where people have them turned on... this might be a teams profile setting that carries into other areas). The comments are enumerated at the page level via REST APIs as well though. https://www.vrdmn.com/2017/07/working-with-page-comments-rest-api-in.html so workflows could be triggered by watching for them via a scheduled flow potentially.
Juan M Baena
Mar 12, 2019Iron Contributor
Thank you for the response Timothy. Regarding the mentions, I have seen the URL provided but I am not sure I see an option in capturing @ Mention data maybe its something I missed, can we retrieve @ mention data also via the comments REST API? Thanks
- TimLBMar 13, 2019Steel Contributor
I'm thinking no one has wrote any articles about it yet. So, time to crack open the data, have a look at examples and figure out the pattern. I would think there should be something to hook into when looking at the text of comments.