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

Case Switch - not using first 2 cases but always using default

I have a SP list that has a column that I use to document the request type and is using the multiple choice column type.


I have a flow created that looks to that column type and based on the answers, sends out an email.  However, it never uses my first two options and always defaults to the default option

 

If you look below, even though the item I created in SP has Sales in the Evaluation Type, instead of using that case, it uses the default case

 

ActionBranchingConditionNotSatisfied. The execution of template action 'Send_an_email_(V2)' skipped: the branching condition for this action is not satisfied.

 

Capture.PNG

 

 

 

Any ideas?

1 ACCEPTED SOLUTION

Accepted Solutions

I'm assuming that Evaluation Type is a column of type Choice.  If it is then the dynamic content you want is actually 'Evaluation Type Value' or something similar.  What you are actually storing in the string is a complex variable so you aren't getting the labels you expect.  Another way to verify that is to look at a recent run.  The Initialize Variable step should show you the value being stored.  It needs to match the case values exactly.



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

6 REPLIES 6
Pstork1
Dual Super User
Dual Super User

Can you show us the code you are using to initialize the variable?  and a recent run so we can see the value being assigned to the variable.  Normally some mismatch, like case or the wrong value, is the problem when a switch doesn't fire.



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

@Pstork1 

 

Here you go

 

Capture.PNG

I'm assuming that Evaluation Type is a column of type Choice.  If it is then the dynamic content you want is actually 'Evaluation Type Value' or something similar.  What you are actually storing in the string is a complex variable so you aren't getting the labels you expect.  Another way to verify that is to look at a recent run.  The Initialize Variable step should show you the value being stored.  It needs to match the case values exactly.



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

@Pstork1  Thank you!

@Pstork1 

 

One last question, if I add all of these to an existing flow, will it run them for everything in my list or just new items going forward?  I'm hoping since the flow is already created, it won't go back to ones from 2 months ago and send out new emails

It should only run for documents that are new or recently modified.  Older documents shouldn't be affected.



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

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Users online (3,920)