cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sobenson
Helper II
Helper II

Too many Approvals with Switch on Choice Value

I have a Security Request form that has a Choice for what connections are needed.  I am using a Switch based on the Value of the choice.  I am sending approvals based on those switches.  My issue is, I have 7 choices and any number of the choices can be selected.  Choice 1 goes to Data Owner 1, Choice 2 goes to Data Owner 2, Choice 3-7 go to Data Owner 3.  

 

By choosing the Choice Value as my Switch Value, I get a Apply to Each Container, which is good for Choice 1 and 2, but for Choice 3-7, I am getting 5 approvals, and would like just 1.  

 

I have set up a String Variable to gather all the Choices together.ChoiceChoiceVariableVariable

1 ACCEPTED SOLUTION

Accepted Solutions
v-litu-msft
Community Support
Community Support

Hi @sobenson,

 

You could create a separate action to send approval for options 3-7.

Delete the Default part:Screenshot 2020-10-16 104943.jpg

 

Then initialize an array variable, append all choices into it. Adding a condition action under it to check the array if contains "Choice 3" to "Choice 7", if it contains create an approval:

Screenshot 2020-10-16 110718.jpg

 

Screenshot 2020-10-16 110736.jpg

 

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.

 

View solution in original post

2 REPLIES 2
v-litu-msft
Community Support
Community Support

Hi @sobenson,

 

You could create a separate action to send approval for options 3-7.

Delete the Default part:Screenshot 2020-10-16 104943.jpg

 

Then initialize an array variable, append all choices into it. Adding a condition action under it to check the array if contains "Choice 3" to "Choice 7", if it contains create an approval:

Screenshot 2020-10-16 110718.jpg

 

Screenshot 2020-10-16 110736.jpg

 

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.

 

View solution in original post

@v-litu-msft Thank you so much! That worked perfectly!

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Solution Authors
Users online (3,208)