cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Dual Super User II
Dual Super User II

Re: Problems with switch, and variables

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
Highlighted
Super User III
Super User III

Re: Problems with switch, and variables

@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
Highlighted
Helper I
Helper I

Re: Problems with switch, and variables

flow.png

 

i hope this helps

Highlighted
Dual Super User II
Dual Super User II

Re: Problems with switch, and variables

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
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

Top Solution Authors
Top Kudoed Authors
Users online (6,478)