Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
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

  • Pstork1 Profile Picture
    66,864 Most Valuable Professional on at
    Power Automate How Best to Set the Approval Status Field in a Document Library
    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.
  • ambi95 Profile Picture
    34 on at
    Power Automate How Best to Set the Approval Status Field in a Document Library
    Hi @Pstork1
    how do we use the same method you suggested, but for lists? how can i get list metadata?
  • koneill2020 Profile Picture
    on at
    Re: Power Automate How Best to Set the Approval Status Field in a Document Library

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

  • Verified answer
    Pstork1 Profile Picture
    66,864 Most Valuable Professional on at
    Re: Power Automate How Best to Set the Approval Status Field in a Document Library

    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
    Re: Power Automate How Best to Set the Approval Status Field in a Document Library

    @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

  • Pstork1 Profile Picture
    66,864 Most Valuable Professional on at
    Re: Power Automate How Best to Set the Approval Status Field in a Document Library

    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

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492