cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AugustoEi
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
Pstork1
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
ScottShearer
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

Pstork1
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
MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MSFTBizAppsLaunchEvent

Experience what’s next for Power Virtual Agents

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Users online (53,792)