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
- physics515Copper ContributorAny 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.
- KaesRCopper 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- FeelGroovieCopper 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_KBrass ContributorThat would be cool! I'm also trying to do the same thing, but haven't yet found a way to automate this.
- Trevor595Copper Contributor
Any luck with this? I'm wondering the same thing. I'd love to build a flow that when an RSS feed updates, it pushes the post to cross-post on our internal Sharepoint News site. Has anyone had luck with this?
- Matthew DiLibertoBrass Contributor
I don't believe creating Modern Site Pages/News is possible using native actions in Flow/Logic Apps.
One possible (advanced) solution would be to:
- Trigger a Flow from a list item
- Get the item's properties
- Call an Azure Function that creates a modern page using the information from the list item: https://docs.microsoft.com/en-us/sharepoint/dev/solution-guidance/modern-experience-customizations-customize-pages
- Publish the page as news
- Mmm...let me disagree here. In Flow we can directly call SPO API so in theory we can do whatever we need inside the Flow
- Terry MatthewsCopper Contributor
I want to do this as well.
What ever happened with this post? Did you guys find a solution?
I did look up https://docs.microsoft.com/en-us/sharepoint/dev/solution-guidance/modern-experience-customizations-customize-pages and the C# code is there.
Not sure if Azure functions, graph, other API things, could be used to create this functionality?
Anyone have an idea or working solution?
Terry