cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
maruthi216
Level: Powered On

Multiple Approver Approval issue

Hello All,

 

Please find my attached issue.

 

Any thoughts..?

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Multiple Approver Approval issue

Hi @maruthi216 

 

you are still running the Filter action inside of a for loop

You do not need that

 

Now that you have the length figured out

Now just add a condition action to check if the length(filter output) is equal to 2

If YES, then both users have approved

If NO, then 1 or both have rejected

 

 

 

11 REPLIES 11
Super User
Super User

Re: Multiple Approver Approval issue

Hi @maruthi216 

 

responses is a collection

 

use filter array to filter each response and check with Approve

then use length function length of filter array output to see how many approved

If count is 2 - then both approvers have approved

 

Capture.PNG

 

Regards,

Reza Dorrani

 

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

 

maruthi216
Level: Powered On

Re: Multiple Approver Approval issue

Can you be specific on the Length Function, on how i should use that...?

Super User
Super User

Re: Multiple Approver Approval issue

Hi @maruthi216 

 

length is an expression

 

so it would be

length(dynamiccontentfilteractionoutput)

 

 

Super User
Super User

Re: Multiple Approver Approval issue

The Everyone must approve type returns the Outcome as a comma delimited list of individual outcomes.  So I would Split the outcome into an array.  Do a ForEach on the Array and if any value is "Reject" then set a variable to Reject, if not set it to Approve.  YOu can also use the values in the Array to set the fields in SharePoint that you want updated.



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

Re: Multiple Approver Approval issue

is this what u r suggesting..?

Super User
Super User

Re: Multiple Approver Approval issue

Hi @maruthi216 

 

 

No need of a for loop around filter array 

Capture.PNG

maruthi216
Level: Powered On

Re: Multiple Approver Approval issue

I got that portion but unable to get the formula for Length()..

Super User
Super User

Re: Multiple Approver Approval issue

Hi @maruthi216 

 

expression should be as follows

 

length(body('Filter_array'))
 
maruthi216
Level: Powered On

Re: Multiple Approver Approval issue

Thank you.

 

Added that, next...?

 

 

Helpful resources

Announcements
firstImage

PowerApps Monthly Community Call!

Join us next Wednesday for our Demo Extravaganza, October 16, 2019 8am PDT.

firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

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

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 387 members 4,873 guests
Please welcome our newest community members: