web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Flow with a checking c...
Power Automate
Unanswered

Flow with a checking condition a yes/no value which always returns no

(0) ShareShare
ReportReport
Posted on by 20

Hii Members,

I have a SharePoint List named Access Registers. This list has some Yes/No fields. I would like to display all these yes/no field values in the Power Automate Email Alert.

In the Flow, in the Send an Email action, I have used the below formula to retrieve the Yes/No field value from the SharePoint List as:

if(equals(triggerBody()?['FeverOrChills'],true),'Yes','No')

Where, FeverOrChills = SharePoint Column Internal Name

But usually what happens is, the above formula always returns me as No value even if the SharePoint Yes/No field is having a Yes value. Below represents a screenshot for your reference:

Flow Yes to No.png

 

Can please anyone suggest or help me with this?

Thanks in Advance!

 

Categories:
  • Hardesh15 Profile Picture
    7,087 Super User 2024 Season 1 on at

    @Preeti12345  Please use True not true.

    Please 'Thumbs Up' the posts that helped you and 'Accept as Solution' if my post answered your question.

    @Hardesh /Gopenly.in

  • Preeti12345 Profile Picture
    20 on at

    Hi @Hardesh15,

    Thanks for your reply. Also, I tried by using True instead of true, it is showing me the same No value only.

  • Hardesh15 Profile Picture
    7,087 Super User 2024 Season 1 on at

    @Preeti12345  do one thing. Add one compose action and pass your FeverOrChiles column value. Are you passing column value or just column name?

    Please 'Thumbs Up' the posts that helped you and 'Accept as Solution' if my post answered your question.

    @Hardesh /Gopenly.in

  • Preeti12345 Profile Picture
    20 on at

    Hi @Hardesh15 

    I have added one Compose action and applied the below formula on its Inputs field as:

    if(equals(triggerBody()?['WearingAppropriatePPE'],True),'Yes','No')

     

    Microsoft Flow Yes to No.png

     

    And next, I have applied this Compose Output in my Alert Email as shown below:

     

    Microsoft Flow Yes to No always No.png

    But still, it is showing me No even if the value is Yes in the SharePoint list. Please any more suggestions on this?

  • Hardesh15 Profile Picture
    7,087 Super User 2024 Season 1 on at

    @Preeti12345  please do not put if condition expression in compose. I said just pass column name value and then check.

    i think you need to pass this @{triggerBody()?['WearingAppropriatePPE']}

    Please 'Thumbs Up' the posts that helped you and 'Accept as Solution' if my post answered your question.

    @Hardesh /Gopenly.in

  • Preeti12345 Profile Picture
    20 on at

    Hi @Hardesh15 ,

    When I passed this column value @{triggerBody()?['WearingAppropriatePPE']} in the Compose action, it is showing me the invalid expression error. Can you please suggest to me the appropriate formula? 

  • Hardesh15 Profile Picture
    7,087 Super User 2024 Season 1 on at

    @Preeti12345  Can you please pass this WearingAppropriatePPE column  from dynamic content menu in compose action.?

    its a very basic step.

    Please 'Thumbs Up' the posts that helped you and 'Accept as Solution' if my post answered your question.

    @Hardesh /Gopenly.in

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 445

#2
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 300

Last 30 days Overall leaderboard