Trying to update news page promoted state, but it is not working
and flow runs successfully, but state is not updated
Solved! Go to Solution.
Managed to demote a news article by using the method listed above by @HarshD to change from 2 to 0 or 1 whatever you want.
Originally Promoted State was not read only which is why it is working for some people, but for quite some time now the field has been Read Only.
Using PNP PowerShell you can set the field to not read only.
Hopefully this does not automatically set back - but i doubt it will.
Hi @HarshD ,
I used a similar method on my side to configure Flow, which can update PromotedState.
The only difference with you is to change the double quotes to single quotes in Body, as below:
Please take a try again.
Edit:
I also tested it with double quotes, and it can also update the value of PromotedState.
Best Regards,
I am running into the exact issue as @HarshD, successfuly run with same 204 results but not actually updating the PromotedState status. Tried single & double quotes, neither with any result. Any ideas or assistance would be greatly appreciated.
Thanks.
I tested it with both double and single quotes and it is not working.
Can you tell me did you try this in targeted release ?
I am still facing the issue in targeted release.Let me try in production as well
I have only tried in production.
Yes, it tried in prod as well and it doesnt works
I created an SPFX webpart , and updated it using simple rest api, and it worked
@HarshD Unfortunately that is beyond my skillset, I guess I will have to try something else. Glad you got it working.
We can demote or unpromote news using following list view extension
Just use below api to Promote News , i.e to set PromotedState=2
PromoteToNews works fine to promote the article, but there isn't a way to step it back.
Managed to demote a news article by using the method listed above by @HarshD to change from 2 to 0 or 1 whatever you want.
Originally Promoted State was not read only which is why it is working for some people, but for quite some time now the field has been Read Only.
Using PNP PowerShell you can set the field to not read only.
Hopefully this does not automatically set back - but i doubt it will.
Join digitally, March 2โ4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!
User | Count |
---|---|
85 | |
58 | |
43 | |
38 | |
34 |
User | Count |
---|---|
91 | |
74 | |
73 | |
61 | |
41 |