Forum Discussion
Change Promoted State value
- Feb 06, 2023The Promoted State column in the Site Pages library is read-only and it is designed to be set by the system. It is not recommended to manually change the value of the Promoted State column, as this could have unintended consequences.
There is no built-in way to change the Promoted State value without using Power Automate or PowerShell. You could use Power Automate to automate the change of the Promoted State value, or use PowerShell to update the value programmatically.
If you do not want to use Power Automate or PowerShell, you could consider creating a new page and copying the content from the News page to the new page. You can then delete the News page if needed.
Hi, Tamras1972 !
Just to counterpoint Adnan_Amin's words, which I'd kindly suggest are a little strong. I say this because you can change this value easily.
How Do You Change The Promoted State?
There are a few ways, I will cover the two most obvious ones.
On Any Given Page
The 'Promoted State' is literally available on every site page to change a Site Page to a News page and back again via the fly-outs in the top right.
You can also display this column in the Site Page library very easily, see Greg's handy explanation here.
Via The SharePoint API
Equally, it can be amended by calls to the API, my recommendation is to use the /ValidateUpdateListItem endpoint when sending.
Method | POST |
URI | SITE/lists/YOUR_PREFERENCE_ON_GETTING_LIST/items(ITEM_NUMBER)/ValidateUpdateListItem |
Body | See below table, the SharePoint site doesn't allow code in tables like the Power Platform one. Weird! |
{
"formValues": [
{
"FieldName": "PromotedState",
"FieldValue": "1"
}
],
"bNewDocumentUpdate": true
}
You may need to ensure that you have specific headers here, I'm not going in to ALL the detail. 🙂
Further Information
Here is a table of the Promoted States:
Promoted State | Page Type | Published Status |
0 | Site Page | Published/Unpublished |
1 | News Page/Link | Unpublished |
2 | News Page/Link | Published |
Hope that this helps anyone else that's ended up here. 🙂
- ganeshsanapJun 23, 2023MVP
CLHess Tamras1972 Anyone looking for a easier solution to change SharePoint news page to site page, check my solution given on below thread:
Change SharePoint News Page to Site Page. Hope it helps!
Please consider giving a Like if my post helped you in any way.