Using Flow to Create News Items from a SharePoint List

%3CLINGO-SUB%20id%3D%22lingo-sub-289340%22%20slang%3D%22en-US%22%3EUsing%20Flow%20to%20Create%20News%20Items%20from%20a%20SharePoint%20List%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-289340%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20it%20possible%20to%20create%20a%20News%20Items%20in%20a%20SharePoint%20Modern%20site%20using%20Flow%20with%20data%20from%20a%20SharePoint%20Online%20list%20within%20the%20same%20site%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20yes%2C%20how%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-289340%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-353668%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20Flow%20to%20Create%20News%20Items%20from%20a%20SharePoint%20List%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-353668%22%20slang%3D%22en-US%22%3E%3CP%3EI%20want%20to%20do%20this%20as%20well.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20ever%20happened%20with%20this%20post%3F%26nbsp%3B%20Did%20you%20guys%20find%20a%20solution%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20did%20look%20up%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepoint%2Fdev%2Fsolution-guidance%2Fmodern-experience-customizations-customize-pages%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepoint%2Fdev%2Fsolution-guidance%2Fmodern-experience-customizations-customize-pages%3C%2FA%3E%20and%20the%20C%23%20code%20is%20there.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENot%20sure%20if%20Azure%20functions%2C%20graph%2C%20other%20API%20things%2C%20could%20be%20used%20to%20create%20this%20functionality%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnyone%20have%20an%20idea%20or%20working%20solution%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETerry%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-289376%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20Flow%20to%20Create%20News%20Items%20from%20a%20SharePoint%20List%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-289376%22%20slang%3D%22en-US%22%3EMmm...let%20me%20disagree%20here.%20In%20Flow%20we%20can%20directly%20call%20SPO%20API%20so%20in%20theory%20we%20can%20do%20whatever%20we%20need%20inside%20the%20Flow%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-289357%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20Flow%20to%20Create%20News%20Items%20from%20a%20SharePoint%20List%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-289357%22%20slang%3D%22en-US%22%3E%3CP%3EI%20don't%26nbsp%3Bbelieve%26nbsp%3Bcreating%20Modern%20Site%20Pages%2FNews%26nbsp%3Bis%20possible%20using%20native%20actions%20in%20Flow%2FLogic%20Apps.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOne%20possible%20(advanced)%20solution%20would%20be%20to%3A%3C%2FP%3E%3COL%3E%3CLI%3ETrigger%20a%20Flow%20from%20a%20list%20item%3C%2FLI%3E%3CLI%3EGet%20the%20item's%20properties%3C%2FLI%3E%3CLI%3ECall%20an%20Azure%20Function%20that%20creates%20a%20modern%20page%20using%20the%20information%20from%20the%20list%20item%3A%20%3CA%20href%3D%22Customizing%20%26quot%3Bmodern%26quot%3B%20site%20pages%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepoint%2Fdev%2Fsolution-guidance%2Fmodern-experience-customizations-customize-pages%3C%2FA%3E%3C%2FLI%3E%3CLI%3EPublish%20the%20page%20as%20news%3C%2FLI%3E%3C%2FOL%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-872949%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20Flow%20to%20Create%20News%20Items%20from%20a%20SharePoint%20List%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-872949%22%20slang%3D%22en-US%22%3EAny%20news%20on%20this%20front%3F%20Can%20this%20be%20done%3F%20I%20am%20trying%20to%20take%20a%20RSS%20need%20from%20our%20public%20website%20and%20cross%20post%20a%20link%20to%20the%20news%20feed%20on%20out%20sharepoint%20site.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-988713%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20Flow%20to%20Create%20News%20Items%20from%20a%20SharePoint%20List%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-988713%22%20slang%3D%22en-US%22%3EThat%20would%20be%20cool!%20I'm%20also%20trying%20to%20do%20the%20same%20thing%2C%20but%20haven't%20yet%20found%20a%20way%20to%20automate%20this.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1167528%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20Flow%20to%20Create%20News%20Items%20from%20a%20SharePoint%20List%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1167528%22%20slang%3D%22en-US%22%3E%3CP%3EAny%20luck%20with%20this%3F%20I'm%20wondering%20the%20same%20thing.%20I'd%20love%20to%20build%20a%20flow%20that%20when%20an%20RSS%20feed%20updates%2C%20it%20pushes%20the%20post%20to%20cross-post%20on%20our%20internal%20Sharepoint%20News%20site.%20Has%20anyone%20had%20luck%20with%20this%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1467866%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20Flow%20to%20Create%20News%20Items%20from%20a%20SharePoint%20List%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1467866%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F414396%22%20target%3D%22_blank%22%3E%40physics515%3C%2FA%3E%26nbsp%3BAny%20updates%3F%20How%20did%20you%20guys%20get%20it%20working%3F%20Or%20did%20it%20in%20another%20way%3F%20We%20are%20currently%20looking%20into%20something%20simular.%3CBR%20%2F%3EI%20would%20like%20to%20use%20the%20%22News%20link%22%20for%20it%2C%20I%20was%20able%20to%20copy%20an%20existing%20%22News%20link%22%20but%20was%20not%20able%20to%20update%20it%20via%20the%20API%20calls%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Visitor

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

11 Replies

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:

  1. Trigger a Flow from a list item
  2. Get the item's properties
  3. 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-c...
  4. 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

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-c... 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

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.
That would be cool! I'm also trying to do the same thing, but haven't yet found a way to automate this.

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?

@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

@KaesR 

 

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

 

2021-03-09_13h02_29.png

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!

@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).

@physics515 

 

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]"
}

 

 

This works great, thanks a lot!! The same action can also be used to consume news from an RSS feed