cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Regular Visitor

Switch case triggers nothing

I've created a Flow when an item is modified to send an email to the creator of the item.  I employed a switch condition that states when a Yes/No field equals "Yes" send an email.  However, no matter what I use for "Yes" (Yes, True, 1) nothing happens - no email.  I've used this function before in conjunction with a drop-down box and it worked a week ago, now nothing.  Anybody else having this issue?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Hi @gackley,

 

This should be caused by the condition, please take a try to click the Advanced mode of the condition, change the 'Yes' value to bool(1), for example:

@equals(
            item()?['FieldName'],
            bool(1)
           )

This should make it work.

let me know if you need any further assistance.

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Highlighted
Community Support
Community Support

Hi @gackley,

 

This should be caused by the condition, please take a try to click the Advanced mode of the condition, change the 'Yes' value to bool(1), for example:

@equals(
            item()?['FieldName'],
            bool(1)
           )

This should make it work.

let me know if you need any further assistance.

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Highlighted
Memorable Member
Memorable Member

Hi @gackley, if I undestand correctly you'll need to do this steps.

 

1 - Use a compose to tranform your boolean value in string - Switch only works with strings and integers

     Use this text in compose : "@string(triggerBody()?['NAME OF PROPERTY'])"

2 - Use the switch and see the magic 😄

 

If you need something else you can call me. If you can post a print of your flow.

 

The first print is the result, the second how i do:

 

ResultResult

 How i DoHow i Do

Regards,

 

Gustavo Moraes


Did I answer your question? Mark my post as a solution!

Gustavo Moraes, o astronauta brasileiro do Flow!


Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Top Solution Authors
Top Kudoed Authors
Users online (7,155)