cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Gavsto
Level: Power Up

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

Re: Unable to set sharepoint approval - etag error?

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

Re: Unable to set sharepoint approval - etag error?

 


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

Re: Unable to set sharepoint approval - etag error?

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
Level: Power Up

Re: Unable to set sharepoint approval - etag error?

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
firstImage

Better Together Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

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
Top Kudoed Authors
Users online (8,944)