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.

 

 

Helpful resources

Announcements
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

Users online (3,040)