cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
kevinyong
Helper V
Helper V

Multiple approval: Custom repsonse

Hi,

Currently, I am building an approval flow with the custom response.image004.png

As you can see, I have created parallel approval.

 

My problem is when there is one of the Approval options is "Need More Information" it should run this flow

Capture.PNG

 

Now, I run this flow by using condition so that the first is where both approvals are "Review Completed", it will run to this flow:

image003.png

 

Next,  One of the approvals choose "Request Decline", it will run to this flow:

image002 (2).png

As for now, I put the "Need more information" at "If no" condition 

image001 (7).png 

 

As now, When one of the approval chooses "Need more information" and  "Review completed". It will run both conditions but I only want the flow run on "Need more information" if the approval option contains "Need more information"

 

Is there any way to solve this

 

Thank you

 

1 ACCEPTED SOLUTION

Accepted Solutions
efialttes
Super User III
Super User III

Hi!

You mean 'Decisions' variable is of type string, and you append the outcome from both approval processes inside?

And, the three custom options for approval are 'REview Completed'  'Need more information' and 'Request Declined'?

So you use 'Append to string' to store inside 'DEcisions' the two options selected in both approvals?

Thanx!

 

 



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



View solution in original post

7 REPLIES 7
efialttes
Super User III
Super User III

Hi!

Comments inside in red

 


@kevinyong wrote:

Hi,

Currently, I am building an approval flow with the custom response.image004.png

As you can see, I have created parallel approval.

 

My problem is when there is one of the Approval options is "Need More Information" it should run this flow

Capture.PNG

 

Now, I run this flow by using condition so that the first is where both approvals are "Review Completed", it will run to this flow:

image003.png

 

If you expect to execute this Condition 'true (Yes) branch' logic  when both Approvals are set to 'Review Completed' you need to use operator 'And' instead of 'Or'. Please review also the text 'REviewCompletedREviewCompleted' seems to be a typo

 

Next,  One of the approvals choose "Request Decline", it will run to this flow:

image002 (2).png

 

 

As for now, I put the "Need more information" at "If no" condition 

image001 (7).png 

 

As now, When one of the approval chooses "Need more information" and  "Review completed". It will run both conditions but I only want the flow run on "Need more information" if the approval option contains "Need more information"

 

Is there any way to solve this

 

As I mentioned, if you expect to execute first Condition 'true (Yes) branch' logic only when both Approvals are set to 'Review Completed' you need to use operator 'And' instead of 'Or'. Please review also the text 'REviewCompletedREviewCompleted' seems to be a typo

 

Thank you

 


 



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



Hi, @efialttes,

 

The "ReviewCompletedReviewCompleted" is the outcome for both approvers and I stored the outcome/decision in a variable

 

As of now, I was thinking it is possible to put:

"Decision" contains "Need More information" and "Decision" does not contain "Request Decline" to run the need more information flow

(Decision is the variable that stores the outcome from both approvers)

 

Thank you.

efialttes
Super User III
Super User III

Hi!

You mean 'Decisions' variable is of type string, and you append the outcome from both approval processes inside?

And, the three custom options for approval are 'REview Completed'  'Need more information' and 'Request Declined'?

So you use 'Append to string' to store inside 'DEcisions' the two options selected in both approvals?

Thanx!

 

 



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



View solution in original post

Hi @efialttes ,

 

You are correct but the "Decision" it did not append as I just store in a variable

 

Thank you

Hi again


@kevinyong wrote:

Hi @efialttes ,

 

You are correct but the "Decision" it did not append as I just store in a variable

 

Thank you


You mean you do not perform an 'Append to string variable' on 'DEcision' but a 'Set variable' instead? And no auxiliar Compose to read first its content and a concat() to keep it?

If so, I would add a dummy compose action block just before first 'Condition' action block, assign as its input variable 'Decision', reexecute flow and inspect its contents, since it is probably not what you expected

Hope this helps



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



@kevinyong 

Did you finally solve the issue?

Thanx!



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



Hi @efialttes ,

 

Sorry for the late reply and yes I was able to solve the issue 

 

Thank you

Helpful resources

Announcements
User Groups Public Preview

Join us for our User Group Public Preview!

Power Automate User Groups are coming! Make sure you’re among the first to know when user groups go live for public preview.

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.

Users online (65,765)