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 / True/False to Text in ...
Power Automate
Answered

True/False to Text in Flow

(0) ShareShare
ReportReport
Posted on by 59

Hello Community,

 

I'm trying to send a mail in Flow gathering information from my SharePoint list whenever a form has been submitted. However when I try to gather information from a Yes/No column it shows as true or false. I want to have this text changed and I have tried various Expressions without any luck. I found a topic where someone asked the same question, however he wanted it when true show none and when false that it creates a custom text.

 

if(triggerBody()?['ColumnName'],null, 'Change wire')

I simply want to change my YES/NO column to the text YES/NO instead of true or false.

 

Thanks.

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

    Hey @Fouad 

     

    Can you share a screenshot of the flow? note that True/false are the actual values for yes/no (yes and no are basically labels). therefore to check that in flow, you need to check with true/ false (boolean values). 

     

    The expression you shared is a bit incomplete. are you trrying to check if the trigger body column name is null? if so you need to add teh equals expression too. 

     

    if(equals(triggerBody()?['ColumnName'],null),value iftrue, valueiffalse)

     

    If you can share more details, we might better assist you with this. 

     

    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!

  • Fouad Profile Picture
    59 on at

    Additional information:

     

    - Connected to SharePoint list


    SCR3.PNG

     

    - This SharePoint column is Yes/No type of column

    - When I run this 'Send an email' Flow it shows me either - False if I selected 'No' in my Form and True if I selected 'Yes' in my FormScr2.PNG

    Scr1.PNG

     

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

    Hey @Fouad 

     

    for Yes/No column type of true/false boolean values, you can use this expression on a variable: 

    Initialise a variable and in the expression :

    if(empty(triggerBody()?['ColumnName']),null,if(equals(triggerBody()?['ColumnName'],'true'),'Yes','No'))
    

    This will change the value to Yes if the boolean is true. 

     

    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!

  • Fouad Profile Picture
    59 on at

    Unfortunately this did not help me.. when I select 'Yes' for boolean it gives me true (just like how it did before) - Column name is: Klantgegevens

    SCR4.PNG

    SCR5.PNG

    This is what it says in mail

     

    This is where I placed the variable in HTML body.SCR6.PNG

     

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

    Hey @Fouad 

     

    can you try removing the single quotes from true and try running the flow again?

  • Fouad Profile Picture
    59 on at
    if(empty(triggerBody()?['Klantgegevens']),null,if(equals(triggerBody()?['Klantgegevens'],true),'Yes','No'))
    Didn't work 😕
  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hey @Fouad 

     

    It is not working because you are referring to the wrong field. Which action is returnign the yes/no type field? 

     

    I tested with a get items action and in the apply to each I am sending some stuff so based on that the expression is: 

    if(empty(string(items('Apply_to_each')?['TaskStatus'])),null,if(equals(items('Apply_to_each')?['TaskStatus'],true),'Yes','No'))

    Here, taskstatus is the column name and is of type yes/no and the apply to each is iterating over each item from the get items. 

     

    if you are doing it on the get item action, replace the reference to the field accordingly. 

     

    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!

  • Fouad Profile Picture
    59 on at

    What am I doing wrong here 😕SCR7.PNG

     

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

    Hey @Fouad 

     

    You are initializing the wrong type of variable at the wrong place. Basically you won't need to set a variable for this. If you can share some details on the scenario that you are building, I might be able to assist you better with this

     

    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!

  • Fouad Profile Picture
    59 on at

    I'll try to explain my builded Flow in pictures, the last 2 Flows 'Send an email' has almost the same body.SCR8.PNG

     

    SCR8.PNG

     

    scr9.PNG

     

    SCR10.PNG

     

    Hopefully you can help me this way better..

     

     

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
11manish Profile Picture

11manish 292 Super User 2026 Season 2

#2
Henil Profile Picture

Henil 128

#3
anirudhev Profile Picture

anirudhev 124

Last 30 days Overall leaderboard