How to Promote a Site Page to News Post in SharePoint Online?

Requirement: Convert Site Page into News post in SharePoint Online.

How to Convert a Site Page into News Post in SharePoint Online?
In modern SharePoint Online sites, any existing site page can be converted into the News page, so that it appears in News web parts. To promote a site page to News page, do the following:
  • Navigate to the site page >> Click on "Promote" button on the toolbar
  • Click on "Post as News on this site" button in the tool pane.
convert site page into news page
It's fairly easy to promote a normal site page, isn't it? Once promoted or demoted, You have to republish the page for the search engine to re-index! Otherwise, You may not find them under places like News hub.

SharePoint Online: Demote a News Post Into Site Page
How about the reverse? demoting news page back to the site page to remove it from news pages? As there is no interface to do this, we can get this done by PnP PowerShell. Setting the "PromotedState" field to "0" demotes the news page.
$SiteURL = "https://crescent.sharepoint.com/sites/Intranet"

#Connect to Site
Connect-PnPOnline $SiteURL -UseWebLogin

#Get all Site pages - along with their IDs
Get-PnPListItem -List "SitePages"

#Demote News page with ID "4" to Site Page
Set-PnPListItem -List "SitePages" -Identity 4 -Values @{"PromotedState"="0"}
BTW, Promoted news posts have the value of "2" for PromotedState field.
How to Promote a Site Page to News Post in SharePoint Online? How to Promote a Site Page to News Post in SharePoint Online? Reviewed by Salaudeen Rajack on March 31, 2020 Rating: 5

2 comments:

  1. Thank you, this is exactly what i was looking for. You made my day!!

    ReplyDelete
  2. This was a phenomenal post, thank you so much. I look forward to learning more along your journey!

    ReplyDelete

Please Login and comment to get your questions answered!

Powered by Blogger.