Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Can't get conditional to work

(0) ShareShare
ReportReport
Posted on by 19

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

  • Verified answer
    KrystalChan Profile Picture
    19 on at
    Re: Can't get conditional to work

    Many Thank, it worked!

  • Verified answer
    v-bacao-msft Profile Picture
    on at
    Re: Can't get conditional to work

     

    outputs instead of output.

     

     

  • KrystalChan Profile Picture
    19 on at
    Re: Can't get conditional to work

    Dear,

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

    Untitled picture8.pngUntitled picture9.png

     

  • v-bacao-msft Profile Picture
    on at
    Re: Can't get conditional to work

     

    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,

  • KrystalChan Profile Picture
    19 on at
    Re: Can't get conditional to work

    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

  • v-bacao-msft Profile Picture
    on at
    Re: Can't get conditional to work

     

    Hi @KrystalChan ,

     

    Please try this configuration:

    54.PNG

    Hope this helps.

     

    Best Regards,

  • KrystalChan Profile Picture
    19 on at
    Re: Can't get conditional to work

    Very sorry that it still not work.

    Untitled picture4.pngUntitled picture5.png

  • v-bacao-msft Profile Picture
    on at
    Re: Can't get conditional to work

     

    Hi @KrystalChan ,

     

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

     

    Best Regards,

  • KrystalChan Profile Picture
    19 on at
    Re: Can't get conditional to work

    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

     

  • v-bacao-msft Profile Picture
    on at
    Re: Can't get conditional to work

     

    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,

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1