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 / Change True or False t...
Power Automate
Answered

Change True or False to Yes or No

(0) ShareShare
ReportReport
Posted on by 25

Hi guys,
I am getting crazy here.
I want to create a report from my list objects.

But I want it to display Yes or No and not True or False

Whatever I do it only displays No, even what I can see that it is True in "Get item" and should be Yes

What am I doing wrong?

 

I have tried both below expression.

if(equals(triggerBody()?[' Direktiv frÃ¥n Beställare/ombud '], true), 'Yes', 'No')

if(equals(triggerBody()?['Direktiv frÃ¥n Beställare/ombud'],'true'),'Yes','No')

But it always reports No

 

Categories:
I have the same question (0)
  • Verified answer
    grantjenkins Profile Picture
    11,063 Moderator on at

    Your expression logic looks fine. I just think the field isn't returning what you expect. Can you put the expression below into a Compose and run the flow then check exactly what value is being returned? You can also click on Show raw outputs within the Compose output to see the exact value.

     

    triggerBody()?['Direktiv från Beställare/ombud']


    ----------------------------------------------------------------------
    If I've answered your question, please mark the post as Solved.
    If you like my response, please consider giving it a Thumbs Up.

  • Marcel Lathouwers Profile Picture
    237 on at

    Hi @undenius 

    Most likely a typing mistake or a type mismatch. 

    Create a compose step directly after the trigger and inspect it on the value that is retrieved. It might be a text value instead of a boolean. 

    In your expessions I notice that you have a space after your fieldname. ombud<space>'

  • undenius Profile Picture
    25 on at

    Thank you @Mglat for your quick answer.
    I sorry but I am limited in my skills with Power Automate.

     

    But I think you are correct.

    When I input the compose action you suggested (triggerBody()?['Direktiv från Beställare/ombud']) it returns nothing at all.

    So, made a compose where I choose the Dynamic content instead and then it returned "true".

    Can I change my expression to use the dynamic content as compose action for if(equals(…..

     

  • Marcel Lathouwers Profile Picture
    237 on at

    yes that should work. 

    If you are not sure yet, that create a new compose and put the if expression into it. That way you directly see if it works like you expect. 

    I always use compose actions to build and check my expressions as a way to debug the flow

  • undenius Profile Picture
    25 on at

    Once again thank you @Mglat ,

    I finally got it working using the expression

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

     

    Thank you for the good tip of creating compose to really see that is happening.

     

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 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard