Forum Discussion
John Edward Paredes
Oct 23, 2018Copper Contributor
How to Send an Email when added a News Post in SharePoint Online site
How do you Send an Email to notify a user whenever a new News Post is created in SharePoint Online site? Please help on how to do this. What are the ways.
pdang
Mar 12, 2019Copper Contributor
Matt Weston Hi Matt, The OOTB solution you provided is not helping. When I try to set an alert on News page, then I get alerted whenever changes are on News.aspx and it is published but not when there is any news post added. Am I missing something? How can I set an alert for myself/other users to get alerted on the News post releases? TIA.
Matt Weston
Mar 12, 2019Iron Contributor
Hi pdang , if you're looking for alerts when only when a news item is published then you're better off working with Microsoft Flow to achieve this. The OOTB method will send alerts when an item is added to the library regardless of whether it is published or not.
I'll post an example Flow later today just in case you need it.
- Mbryant705Apr 08, 2019Copper ContributorHi Matt,
Can you post some Pointers on how to do this please?
Thanks
Martin- Matt WestonApr 09, 2019Iron Contributor
Hi Mbryant705, sorry I realised I completely forgot to follow up on this post, so also apologies to everyone else involved in the thread.
In a very simple Flow, I can send an email notification when a news item is published. There are a couple of things to be aware of:
- Site Pages won't normally appear in the list of libraries in the trigger, therefore you need to select "Enter a custom value" and then type in Site Pages
- The published state of a document is held within a metadata field called "Promoted state". 1 = in Draft, 2 = Published. If it's a standard site page, not a news item, the Promoted state will be 0.
I can create a condition so that if the Promoted state = 2 (News Item is published) then I can send an email to the required user(s). I can alternatively use the Flow actions to send out a push notification, send a message to Teams etc however you want to get your notification out.
An example Flow is attached to this post. I hope that helps.
- Newbie270Jul 06, 2021Copper Contributor
This works 100% however..... If for some reason i go back to an older news post and edit or republish then another email comes out. Is there a way to send out the email on promote state = 2 (original news post) But not to send out any future emails even if someone makes a change to the post?