cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Super User II
Super User II

Re: issue when updating new page promoted state in microsoft flow

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
Highlighted
Community Support
Community Support

Re: issue when updating new page promoted state in microsoft flow

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.
Highlighted
Frequent Visitor

Re: issue when updating new page promoted state in microsoft flow

@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.

Highlighted
Advocate I
Advocate I

Re: issue when updating new page promoted state in microsoft flow

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 ?

Advocate I
Advocate I

Re: issue when updating new page promoted state in microsoft flow

I am still facing the issue in targeted release.Let me try in production as well 

Highlighted
Frequent Visitor

Re: issue when updating new page promoted state in microsoft flow

I have only tried in production.

Highlighted
Advocate I
Advocate I

Re: issue when updating new page promoted state in microsoft flow

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

Highlighted
Advocate I
Advocate I

Re: issue when updating new page promoted state in microsoft flow

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

Highlighted
Frequent Visitor

Re: issue when updating new page promoted state in microsoft flow

@HarshD  Unfortunately that is beyond my skillset, I guess I will have to try something else.  Glad you got it working.

Highlighted
Advocate I
Advocate I

Re: issue when updating new page promoted state in microsoft flow

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...

Highlighted
Frequent Visitor

Re: issue when updating new page promoted state in microsoft flow

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

Highlighted
Advocate V
Advocate V

Re: issue when updating new page promoted state in microsoft flow

@v-bacao-msft , @rabiawilliams 

Nope, none of them works... unfortunately

Highlighted
Super User II
Super User II

Re: issue when updating new page promoted state in microsoft flow

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

Highlighted
Super User II
Super User II

Re: issue when updating new page promoted state in microsoft flow

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Upcoming Events

Experience what’s next for Power Automate

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Top Solution Authors
Top Kudoed Authors
Users online (4,254)