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

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
Dual Super User

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

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
AugustoEi
Level: Powered On

Re: Problems with switch, and variables

flow.png

 

i hope this helps

Dual Super User
Dual Super User

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

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

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!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors
Users online (5,396)