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

Announcements

News and Announcements icon
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
    69,543 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
    69,543 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
    69,543 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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 419

#2
Vish WR Profile Picture

Vish WR 314

#3
David_MA Profile Picture

David_MA 260 Super User 2026 Season 1

Last 30 days Overall leaderboard