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.
Matt Weston
Apr 18, 2019Iron Contributor
Hi KevinO1984 that's a great question and a good extension of what we've already done.
As my trigger is "When a file is created or modified (properties only)" I'm able to see the properties of the page coming back. If I've used another trigger, I'll need to use the action "Get File Properties" to get the same info.
There are two properties which I could use to add some more info to my email:
- Banner Image URL
- Description
Banner Image URL will take the image url of the image which I have assigned as the header of my news page. If I have no header, this field will be populated with the first image that it finds on the page. This is how the rollup image to the news web part works. You can take this URL and use it within HTML in our email.
The Description takes the first paragraph from the news item, so again you can use this to add into your email. I don't think there's a native way of grabbing the entire news article from the properties as it doesn't get tagged as metadata, but I'll have a look to see if there are other options which we can explore.
KevinO1984
Apr 18, 2019Copper Contributor
That helps a lot, thank you for taking the time to explain it to me. I was able to get the link to the image to show up, now i just need to figure out how to code it so it show up in HTML or something.
Have a great day!