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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Convert True and False...
Power Automate
Unanswered

Convert True and False to Yes or No in Power Automate

(0) ShareShare
ReportReport
Posted on by 8

Hello Power Automate Community,

 

Wondering what I'm i missing? Using the following Expression. So when i run the flow is only returning "No".

 

SharePoint list column Type:  Yes/No

 

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

 

Capture.PNGCapture1.PNG

 

Thank you in advance.

 

 

Categories:
I have the same question (0)
  • trad Profile Picture
    152 on at

    Look at the values coming out from SharePoint. Yes/No columns actually store the value as "Yes" and "No" not True/False. E.g.

    	"AddedtoLibrary": {
    		"@odata.type": "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
    		"Id": 0,
    		"Value": "Yes"
    	}

     

  • oscarf Profile Picture
    8 on at

    Hi @trad Thank you for the quick response. Just a little confused. What will be the correct Expression? Still learning Power Automate. My apologies.

     

    Capture2.PNG

     

    Thank you.

  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @oscarf 

     

    Can you try updating the expression as: 

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

    and if that does not work, try: 

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

     

    Hope this Helps! 

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • VictorIvanidze Profile Picture
    13,073 on at

    Also try

    if(equals(toLower(triggerBody()?['Does_x0020_this_x0020_project_x00']),'true'),'Yes','No')
  • oscarf Profile Picture
    8 on at

    Thank you so much @yashag2255 Still getting back the same results. Very strange.

     

    TrueandFalse.PNGTrueandFalse1.PNG

     

    I try both expression. 

     

     

     

  • oscarf Profile Picture
    8 on at

    Thank you @VictorIvanidze Also, try your expression and got the following error.

    The execution of template action 'Create_CSV_table' failed. The column values could not be evaluated: 'The template language function 'toLower' expects its parameter to be a string.

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard