Forum Discussion
Untuvakana
Jun 03, 2021Copper Contributor
Creating a flow to change promoted state of a page
I want to create a flow using power automate that changes site pages promotion stage from 2 to 0 every month if page doesn't consist certain name. This is so pages doesn't show in news feed after cer...
Untuvakana
Jun 07, 2021Copper Contributor
When I try to run this and condition is true I get this error message:
{
"message": "Request ETag-value ' ' doesn't match with object ETag '\"c11dd47d-90dc-4a84-b222-492ad9feb4af,12\"'.\r\nclientRequestId: e310ef09-909c-42c5-9a3b-cb2298dfa355\r\nserviceRequestId: 2180cf9f-5002-3000-0498-428ab618e0d4",
"status": 412,
"source": https://xxxxxxxx/_api/web/lists/GetByTitle('Site%20Pages')/Items(31),
"errors": [
"-1",
"Microsoft.SharePoint.Client.ClientServiceException"
Error message was in another language so sorry for rough translation.
{
"message": "Request ETag-value ' ' doesn't match with object ETag '\"c11dd47d-90dc-4a84-b222-492ad9feb4af,12\"'.\r\nclientRequestId: e310ef09-909c-42c5-9a3b-cb2298dfa355\r\nserviceRequestId: 2180cf9f-5002-3000-0498-428ab618e0d4",
"status": 412,
"source": https://xxxxxxxx/_api/web/lists/GetByTitle('Site%20Pages')/Items(31),
"errors": [
"-1",
"Microsoft.SharePoint.Client.ClientServiceException"
Error message was in another language so sorry for rough translation.
RobElliott
Jun 07, 2021Silver Contributor
If you can post screenshots of your flow I'll take a look and see if I can see what's causing that.
- UntuvakanaJun 07, 2021Copper Contributor
- ekarimDec 24, 2021Brass Contributor
This was the only way I could update the PromotedState field:
_api/web/lists/GetByTitle('Site Pages')/items(###)/validateUpdateListItem { "formValues": [ { "FieldName": "PromotedState", "FieldValue": "2" } ] }
ā
Ellis
- UntuvakanaJun 07, 2021Copper ContributorThanks, I was just careless and missed one typing error. Now the script runs fine and no errors but when I go back to Sharepoint every item that script found is still in promoted state 2.