cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Regular Visitor

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

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

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

 

 

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Community Support
Community Support

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

 

 

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Microsoft Ignite

Microsoft Power Platform: 2021 Release Wave 1 Plan

Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (38,373)