web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Power Automate How Bes...
Power Automate
Answered

Power Automate How Best to Set the Approval Status Field in a Document Library

(0) ShareShare
ReportReport
Posted on by

In my Power Automate flow - what is the best way to go about having the OOTB Approval Status field associated with a Document Library be set to Approved (and published) when an item is indeed marked as approved from a workflow as such: When I try and add a Update Item as such I don't see the value to set for the Approval Status column which I turned on in the document library:

 

powerautomate_update_approval_status_field.png

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    68,707 Most Valuable Professional on at

    For the built in field you want the Set Content Approval action.  For a document library you will need to retrieve the files metadata properties to get the ETag also.

    image.png

  • koneill2020 Profile Picture
    on at

    @Pstork1  OK so I added the Get file metadata as such with the Set content approval status as such as well and the error I get is  -> Error

    Action 'Get_file_metadata' failed
    The response is not in a JSON format. 
     
    Therefore what is the best way to resolve I'm not too familiar with the best way of setting the eTag - as I utilized the Content Approval Status as that is the value I am trying to set:

    powerautomate_get_file_metadat_approval_status_field.png

  • Verified answer
    Pstork1 Profile Picture
    68,707 Most Valuable Professional on at

    It doesn't look like you've got all the right things in the correct places.  Here's a working copy from a sample I built for one of my demos.  In the set Content Approval Status the ID is the item id for the file and the ETag should be a Dynamic field called 'ETag' in the output of the Get file metadata

    image.png

  • koneill2020 Profile Picture
    on at

    @Pstork1 - many thanks that got me over that hurdle!

  • ambi95 Profile Picture
    34 on at
    Hi @Pstork1
    how do we use the same method you suggested, but for lists? how can i get list metadata?
  • Pstork1 Profile Picture
    68,707 Most Valuable Professional on at
    You don't need the ETag when updating an Item, only a document.  So the steps are the same except you don't need to get the metadata to get the ETag because its not needed.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard