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
Super User
Super User

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

HarshD 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 ?

HarshD 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 

KRhoades
Frequent Visitor

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

I have only tried in production.

HarshD 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

HarshD 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

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

HarshD 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
rabiawilliams
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

jvdlinden 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

Super User
Super User

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.

Super User
Super User

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
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Users online (8,509)