cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jobiewan
Helper I
Helper I

Set Content Approval just not working

Hello, I'm really confused about this Set Content Approval business. I created a flow with "when a file is created or modified" trigger and it worked just fine. But I wanted writers to be able to send documents for approval only when they are ready to do so (i.e., not just for small changes). I found a great demo here to create a "Get Approval" button to trigger the workflow. However, I simply cannot get it to work, even though I've replicated every step from my previously successful flow. I finally just created a pared down library and simplified everything I could, but it still just will not change the approval status. What am I missing? Is the trigger condition just not going to work in the same way?

Capture.PNG

1 ACCEPTED SOLUTION

Accepted Solutions

Ok, I think I have it figured out. I don't know exactly how I fixed it, but this is a screen shot of a working flow!

It works!It works!

View solution in original post

12 REPLIES 12
Pstork1
Dual Super User III
Dual Super User III

First thing I would check is to make sure that "Require Content Approval" is turned on in the List Settings > Version settings.  If that isn't enabled the field won't be there that is required for Update Content Approval to work.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Yup, content approval is on, with major versioning set up

Pstork1
Dual Super User III
Dual Super User III

Kind of hard to tell from your screenshot, but I would take a look at a run and make sure the yes side of your condition is running.  YOu should be checking Outcome from the Approval and it looks like you are checking something that starts with Content.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

The field is Content Approval Status. Oddly, neither Outcome and Response were options in the dynamic content list. This is the closest field I could find.

 

This makes me think that something is off upstream. It's almost as if the initial trigger has hidden functionality that messes things up. When I create the exact same workflow with a different trigger, it works like a charm. I really don't know where to go from here.

Pstork1
Dual Super User III
Dual Super User III

Try searching for Outcome when setting the condition.  Dynamic content can often be over filtered, but if you search for it in the dynamic content box it will show up.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

No, it's not available in this particular flow. I searched and searched. There's nothing else that approximates it, either.

Pstork1
Dual Super User III
Dual Super User III

I just looked again at your screenshot.  Did you rename the Approval action? If not, then you evidently started with a template or an old Flow.  The Create an Approval action has been deprecated for a while and is no longer available to be directly added to a Flow.  If you are using the older version that might explain why you aren't seeing the same dynamic content.  I would delete that action and replace it with the current Start and wait for an approval V2 . Then you should start seeing the other dynamic content that people are mentioning.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

I changed the template to Start and wait for an approval (I didn't see a v2 version) and moved the response action into the same container. Then I was able to get the correct Outcome field. However, now it is failing on the Get File Metadata action. (I'm using FileID as the field, though it asks for a particular folder. This worked fine in my other workflow). However, it keeps insisting that the file is not found, and I need that particular action in order to get the ETag for the content approval. Am I missing something with the Get File Metadata? I've tried using it at different point during the workflow, and it fails every time...

 

Thank you for all your help!

I just tried ID as the field in Get File Metadata and it failed. Then I tried Identifier as the field, and it CLAIMED to be successful, but nothing actually happened.  I didn't get either the approval email or the approval change. Any advice is welcome!

Ok, I think I have it figured out. I don't know exactly how I fixed it, but this is a screen shot of a working flow!

It works!It works!

View solution in original post

juresti
Responsive Resident
Responsive Resident

You changed your condition.

 

In the first screen shot you had a sharepoint icon in condition.

 

In your second screen shot you were using the approval icon.

 

Your screen shot was a great example to follow, by the way.

Thank you! I did change the condition, but I also changed the Get File Metadata field to Identifier. That seemed to do the trick. I've since built upon the workflow with automated email notifications and copy file actions, and all is working well. 

Helpful resources

Announcements
MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MSFTBizAppsLaunchEvent

Experience what’s next for Power Virtual Agents

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (64,663)