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

Problems with switch, and variables

Hi,

 

I created a workflow with a general variable with the value of 'A', then it enters in a do until that variable is set to 'X'

 

the switch takes that value of 'A' at the end of that branch it changes to 'B' if the condition is OK or changes to 'X' if is negative, when is set to 'B' doesn't changes the branch and keeps in loop in the same branch, there is a problem of using only 1 variable or the switch item/variable is working wrong?

 

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User III
Dual Super User III

If you look at your No branch you'll see that it says you are setting the value to exit the loop.  Since Case 2 is inside the loop I wouldn't expect it to be reached if Case 1 is ever invoked.  Check the value you are setting in the No Branch.  It should be set to proceed to Case 2 not exit the loop.



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

View solution in original post

3 REPLIES 3
Super User III
Super User III

@AugustoEi 

Please post a screen shot of your Flow as that will make it much easier to assist.

 

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

Scott

flow.png

 

i hope this helps

Dual Super User III
Dual Super User III

If you look at your No branch you'll see that it says you are setting the value to exit the loop.  Since Case 2 is inside the loop I wouldn't expect it to be reached if Case 1 is ever invoked.  Check the value you are setting in the No Branch.  It should be set to proceed to Case 2 not exit the loop.



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

View solution in original post

Helpful resources

Announcements
PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Top Solution Authors
Users online (5,254)