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

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

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Microsoft Ignite

Microsoft Power Platform: 2021 Release Wave 1 Plan

Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (80,299)