cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
HarshD
Advocate I
Advocate I

issue when updating new page promoted state in microsoft flow

Trying to update news page promoted state, but it is not working

 

 

Capture.PNG

and flow runs successfully, but state is not updated

Capture1.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
Gristy
Resident Rockstar
Resident Rockstar

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.

 

  • set-pnpfield -Identity "Promoted State" -List "Site Pages" -Values @{ReadOnlyField=$false}

Hopefully this does not automatically set back - but i doubt it will.

 

 

View solution in original post

13 REPLIES 13
v-bacao-msft
Community Support
Community Support

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:

74.PNG75.PNG

Please take a try again.

 

Edit:

I also tested it with double quotes, and it can also update the value of PromotedState.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-bacao-msft -

 

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 

KRhoades
Frequent Visitor

I have only tried in production.

Yes, it tried in prod as well and it doesnt works

HarshD
Advocate I
Advocate I

I created an SPFX webpart , and updated it using simple rest api, and it worked

KRhoades
Frequent Visitor

@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

https://sharepointhd.wordpress.com/2019/04/15/extensionlist-view-command-set-for-unpromotting-a-news...

rabiawilliams
Frequent Visitor

Just use below api  to Promote News , i.e to set PromotedState=2

 

2019-05-22 15_54_09-Edit your flow _ Microsoft Flow.png

@v-bacao-msft , @rabiawilliams 

Nope, none of them works... unfortunately

Gristy
Resident Rockstar
Resident Rockstar

PromoteToNews works fine to promote the article, but there isn't a way to step it back.

Gristy
Resident Rockstar
Resident Rockstar

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.

 

  • set-pnpfield -Identity "Promoted State" -List "Site Pages" -Values @{ReadOnlyField=$false}

Hopefully this does not automatically set back - but i doubt it will.

 

 

View solution in original post

Helpful resources

Announcements
MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Users online (72,314)