Forum Discussion
How to Send an Email when added a News Post in SharePoint Online site
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.
As I understand it, you have designed a Flow that can send an email, when a news post have been published 🙂 Would really like to use that.
- Neha_RathiApr 29, 2020Copper Contributor
Matt Weston This solution works like charm for Outlook web client but it does not work for desktop. Can you please help us in anyway?
Thanks,
Neha
- ALDINA3003Jan 30, 2020Brass Contributor
Hi Matt,
I love this! Thank you thank you, Matt, for sharing. The cherry on top of the cake would be sending notifications to all the people that follow that site otherwise it seems like you have to enter each individual's name into the flow. Any way to pull that basedo on the site viewers if "following" is not an option?
- DaithiGDec 03, 2019Steel Contributor
Thanks Matt Weston !
It's a pity there's no inbuilt way to schedule a news digest and email it to staff.
- Matt WestonDec 02, 2019Iron Contributor
Hi DaithiG that's correct, however you've got me thinking now if I could do something around the content roll up. Let me see what I can come up with 🙂
- DaithiGNov 29, 2019Steel Contributor
Hi Matt Weston that looks great!
Correct me if I'm wrong but that only works per site? It wouldn't pickup a news post that was rolled up to the site?
I.e. if I had a site called IT and site called "Main Intranet", I'd have to have a flow per site for the news email? - Matt WestonNov 28, 2019Iron Contributor
Hi fvp11, I've blogged and vlogged it 🙂
https://collab365.community/using-flow-sharepoint-news-notifications/
If you need any help, please don't hesitate to let me know.