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

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

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.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (1,798)