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

How can I set the approval status of a Document Set using Flow?

Hi!!

 

Please, help.

 

I have a Document Set with four (4) different files. Since each file can be updated separately on-demanded, I decided to implement a workflow that runs on the selected file. Based on the approver response, I'm able to update the "content approval status" of the selected file. So far, everything works fine. However, I have an issue:

 

After four files (4) are approved, how can I update the "approval status" of the Document Set itself? All files are approved but the Document Set is still hidden to end-users because it has "pending" status.

 

Thanks in advance.

8 REPLIES 8
ChristianAbata
Super User
Super User

hi @efebo  could you share an screanshot from your flow?



Did I answer your question? Please consider to Mark
my post as a solution! to guide others :winking_face:

Proud to be a Flownaut!


If you want you can follow me at www.christianabata.com Quieres contenido en español? Síguenos en Power Automate LA
Pstork1
Dual Super User
Dual Super User

Depending on how critical timing is on this, I would probably create a recurring flow that would check all the document sets that have been modified since the last run time.  Then for each document set loop through the documents in the set to check their approval status.  If all are marked as approved update the approval status of the document set.  

 

I don't think there is any way to do this automatically.



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

Hi @ChristianAbata, please check...

 

DocSet1.JPGDocSet2.JPG

hi @efebo  what I'll do is create a sharepoint list the the columns of the files approved for example

FileStatusAprove1FileStatusAprove2FileStatusAprove3FileStatusAprove4All

So if the all columns status will save as approve then the last column could be a calculated colum to add the condition and change the value, so if the value changes your documents set. 



Did I answer your question? Please consider to Mark
my post as a solution! to guide others :winking_face:

Proud to be a Flownaut!


If you want you can follow me at www.christianabata.com Quieres contenido en español? Síguenos en Power Automate LA

Thanks, I will try and let you know. 

Hi @Pstork1

 

I'm new to Flow. Any example of looping (in Flow)?

Here's a simple example.  Its started with a manual trigger, but you could start it with a recurrence trigger to do this periodically.  Once triggered it lists the files in a particular folder (document sets are special folders) then executes and Apply to each on the list to get the name of each document inside the folder.  Instead of the compose I could check their status and set a variable to record the overall status.

screenshot.png



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

How can we start the workflow on document set automatically based on condition? is there any action saying completed uploading documents to set. what should be the condition?

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Users online (4,902)