0

So with help I have this flow that supposed to change promoted state of a page after the page is one day old and has F7 in the file name from 2 to 0. There is no errors and flow runs fine, finds the pages and condition works but after that, nothing. After the flow is done pages still have promoted state 2. Any ideas? enter image description hereenter image description here

enter image description here

enter image description here

0

Using PnP Powershell, seeing PromotedState is a Read Only Field (ReadOnlyField =True)

Connect-PnPOnline -Url $SiteURL -SPOManagementShell

Get-PnPField -List "SitePages"

$fld=Get-PnPField -List "SitePages" -Identity f5ad16a2-85be-46b2-b5f0-2bb8b4a5074a
$fld.ReadOnlyField

You may need to update it to read/write first and try again

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

For additional info, visit this this link

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.