cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Gavsto
Regular Visitor

Unable to set sharepoint approval - etag error?

The approval never gets set, and when I test the flow it throws the following error:

 

{\"Etag\":\"\\\"{08D350EA-9DA2-4A23-8976-9E5E3966CBF1},8\\\"\",\"Message\":\"The ETag of this item does not match the one used for setting content approval status. The contents of the item may have changed before the action was completed.
 
My flow is setup as follows:
 
1 ACCEPTED SOLUTION

Accepted Solutions
Pstork1
Dual Super User III
Dual Super User III

Add a get File metadata action between your loop and the update content approval action.  That will retrieve a new ETAG after the changes you made inside the loop have been processed.  Use that ETAG to update the content approval.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

3 REPLIES 3
Pstork1
Dual Super User III
Dual Super User III

 


-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
Pstork1
Dual Super User III
Dual Super User III

Add a get File metadata action between your loop and the update content approval action.  That will retrieve a new ETAG after the changes you made inside the loop have been processed.  Use that ETAG to update the content approval.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

Gavsto
Regular Visitor

This got me there in the end, had to use the Get File Metadata from Path action in the end. Thanks for your help.

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Solution Authors
Users online (2,399)