Forum Discussion
JamesTredree
Nov 20, 2018Copper Contributor
Using Flow to Create News Items from a SharePoint List
Hi, Is it possible to create a News Items in a SharePoint Modern site using Flow with data from a SharePoint Online list within the same site? If yes, how? Thank you
physics515
Sep 24, 2019Copper Contributor
Any news on this front? Can this be done? I am trying to take a RSS need from our public website and cross post a link to the news feed on out sharepoint site.
KaesR
Jun 16, 2020Copper Contributor
physics515 Any updates? How did you guys get it working? Or did it in another way? We are currently looking into something simular.
I would like to use the "News link" for it, I was able to copy an existing "News link" but was not able to update it via the API calls
- FeelGroovieMar 09, 2021Copper Contributor
Bringing this tread up from the dead! I just had a similar requirement on how to create an SP online news item when a company press release is announced on the external group site. The way I have triggered this is that I subscribed to the company news bulletin. The flow triggers when I receive the subscription email. I use flow to parse the information I need out of the email and pass it into variables (Title, Target URL etc. The same thing could be done by using a list instead of an email. The important thing is how to create the news story with the information you have.
You can use the 'Send HTTP Request' connector with the following information
FULL BODY TEXT:
{"BannerImageUrl":"",
"Description":"",
"IsBannerImageUrlExternal":"true",
"OriginalSourceUrl":"",
"ShouldSaveAsDraft":false,
"Title":""
}I kept the Banner image URL simple and saved an image into a document library. I use the same image for every news item created this way. You may prefer a different way.
The Variables you see can be picked up from your list instead
Good luck!
- Jerome_KMar 09, 2021Brass ContributorThis works great, thanks a lot!! The same action can also be used to consume news from an RSS feed
- physics515Mar 09, 2021Copper Contributor
FeelGroovie This is interesting. I'll have to give this a try, I've been busy with other things so I haven't had any time to dedicate to solving this. I'm still subscribing to all of my feeds in an RSS reader and then manually updating them once or twice a week.
I'd like to know a few more specifics on how you are doing this, for instance what is the URL that you are sending the HTTP Request to (relatively of course).
- FeelGroovieMar 09, 2021Copper Contributor
The Site address is just that. The site which you wish to create the news story in. In my case its:
"https://company.sharepoint.com/sites/NewsTest"
The http request will call the API to that site and create a news article using the link you provide it. You can test it by creating a simple flow with a manual trigger and adding text into the Send HTTP body instead of using variables like so;
{"BannerImageUrl":"",
"Description":"[NEWS DESCRIPTION]",
"IsBannerImageUrlExternal":"true",
"OriginalSourceUrl":"[ENTER URL OF NEWS STORY HERE]",
"ShouldSaveAsDraft":false,
"Title":"[NEWS TITLE]"
}