cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
KrzysztofO
Level: Power Up

documents approval flow - custom responses - request change in document

I'm working on documents approval flow and faced some problem...

General concept is that documents are stroed on Sharepoint library and after running flow it goes to:

1st level - operation team approval (document owner) - information about onwer is assigned to document

2nd level - quality team approval - information about quality tea, approver is assigned to document

3rd level - management approval - depends on the area it goes to appropriate approver based on external sharepoint list

 

In generaly it works if we have on each approval level options: Approve or Reject. The problem is that on the 2nd and 3rd approval level it is needed to have additional 3rd option: "Request change". In this option approver ask for document correction/update and this request has to go to document owner.

I know how to use Customs Responses option and add "Request change" button and switch actions for it.

custom responses.JPG

custom responses - switch.JPG

It works as well - if quality approver (or management approver) use "Request Change" option document onwer is notyfied by mail about it and has got an option to correct document.  But in this place flow ends. Insted of it document should go again to 2nd level approval.

I have no idea how to do it?

 

2 REPLIES 2
Dual Super User
Dual Super User

Re: documents approval flow - custom responses - request change in document

Hi @KrzysztofO 

 

You need to be using state machine pattern to ensure a previous state is recalled based on output

 

https://powerusers.microsoft.com/t5/Microsoft-Flow-Community-Blog/Simulate-state-machines-with-Micro...

https://sergeluca.wordpress.com/2018/11/26/new-flow-state-machine-pattern-with-unlimited-running-tim...

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

Community Support Team
Community Support Team

Re: documents approval flow - custom responses - request change in document

Hi @KrzysztofO,

 

You could create a Do until action to put approval level 2 and approval 3 into it. Then set the loop condition is approval level 2's outcome (single approver's response is the outcome) is not "Request Change". It will be a loop until approval level 2's outcome is "Approve" or "Reject".

Just like the following picture shows:Annotation 2019-08-27 160207.png

Please have a try, I hope it can help you.

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

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (5,115)