Skip to main content

Notifications

Power Automate - General Discussion
Answered

Set Content Approval Status Action does not give me a list of available library

(0) ShareShare
ReportReport
Posted on by 9

I'm trying to use the Set Content Approval Status action but the there is no library for my under the selection. There are libraries under this site that already have Content Approval turned on.

  • Verified answer
    v-xida-msft Profile Picture
    v-xida-msft on at
    Re: Set Content Approval Status Action does not give me a list of available library

    Hi @KirkT,

     

    Could you please show a clear screenshot of your "Set content approval status" action?

     

    I have made a test and the issue is confirmed on my side. The available libraries would not be shown up automatically within Library Name field of "Set content approval status" action.You could consider add a Library name as a custom value within Library Name field of "Set content approval status" action.

     

    In addition, I think it is not appropriate to add the "When a file is created or modified on a folder" trigger as the trigger of your flow. If you add the "When a file is created or modified on a folder" trigger in your flow, you could not get proper Item id dynamic content from the trigger within Id field of "Set content approval status" action.

     

    I have made a test on my side and please take a try with the following workaround:

    • Add a "When a file is created or modified (properties only)" trigger.
    • Add a Condition, left input box set to ApprovalComplete dynamic content of the trigger, right input box set to false, middle drop down, choose is equal to.

    Note: The ApprovalComplete column is a custom value in my SharePoint library, which is a Yes/No type column. The default value of this column is No.

     

    • Within "If/yes" branch of Condition, add a "Get file metadata" action, File identifier field set to Identifier dynamic content of the trigger.

             Add a "Set content approval status" action, Id field set to ID dynamic content of the trigger, ETag field set to ETag dynamic content of the "Get file metadata" action.

            Add a "Update file properties" action, Id field set to ID dynamic content of the trigger, ApprovalComplete field set to Yes.

     

    Image reference:4.JPG

     

    5.JPG

    The flow works successfully as below:6.JPG

     

     

    Best regards,

    Kris

     

     

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,422

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,711

Leaderboard