cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
KrystalChan
Frequent Visitor

Can't get conditional to work

Dear,

 

When I create a new automation flow to forwarding mail base on the sql query value, the condition should be if the value equal to / contain  "Y", should flow to "IF YES". But actually, the auto-flow goes to the wrong way.  Could you help to solve this problem? Thank you.

Untitled picture2.png

 

Untitled picture.png

2 ACCEPTED SOLUTIONS

Accepted Solutions

 

outputs instead of output.

 

 

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

Many Thank, it worked!

View solution in original post

10 REPLIES 10
v-bacao-msft
Community Support
Community Support

 

Hi @KrystalChan ,

 

Please try to use Compose to output All result of the query and check if the output contains the expected string.

And you could fill the output of the Compose in the left parameter to compare the string. Like:

53.PNG

 

Best Regards,

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

Thanks for your reply, through the icon which you provide, I can find this step named " data operation", but another question is why I cannot search it? Is any problem with my language, how can I transfer to English? Many thanks

 

Untitled picture3.png

 

 

Hi @KrystalChan ,

 

You could click "built in" to get the Compose.

 

Best Regards,

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

Very sorry that it still not work.

Untitled picture4.pngUntitled picture5.png

 

Hi @KrystalChan ,

 

Please try this configuration:

54.PNG

Hope this helps.

 

Best Regards,

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

Unfortunately, it still not work after I re-build all the steps. Don't know if it will work, when I need to change the value from "Y" to "True"?

 

Untitled picture6.pngUntitled picture7.png

 

Hi @KrystalChan ,

 

You are not using my method to get the value. Please check the screenshot again.

 

You need to use the expression to get value. If you have switched the language to English, you could change the expression to output('Compose')['value'].

 

Hope that makes sense.

 

Best Regards,

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

Dear,

Something wrong with the coding, don't know how it happened.

Untitled picture8.pngUntitled picture9.png

 

 

outputs instead of output.

 

 

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

Many Thank, it worked!

Helpful resources

Announcements
October Events

Mark Your Calendars

So many events happening this month - don't miss out!

 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

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

Users online (2,838)