Workflow for email notifications

Iron Contributor

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 site, is it possible to somehow add workflow logic so that specific people like the site owners can get an email message once those actions occur. Maybe Microsoft Flow could tie into those actions to help deliver the email notification?  Thanks!

3 Replies
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-an...) 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.



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

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.