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

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
Community Support Team
Community Support Team

Re: Switch case triggers nothing

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
Community Support Team
Community Support Team

Re: Switch case triggers nothing

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

Super User
Super User

Re: Switch case triggers nothing

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:

 

Flow.pngResult

 Flow1.pngHow 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
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!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

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 (Last 30 Days)
Users online (3,752)