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 / Exporting Boolean Valu...
Power Automate
Answered

Exporting Boolean Values to CSV

(0) ShareShare
ReportReport
Posted on by 35

Hello!

 

I did a flow which exports to a CSV part of my SP list. When I open the created CSV the boolean values appears as a TRUE or FALSE instead of YES or NOT as shown in my SharePoint list.

 

Any help to correct the wording from TRUE/FALSE to YES/NO will be really appreciated.

Categories:
I have the same question (0)
  • v-litu-msft Profile Picture
    Microsoft Employee on at

    Hi @Saul85,

     

    You could use the replace() function to convert the true to yes and false to no, for example:

    replace(replace(output('Compose'),'true','yes'),'false','no')

     

    Best Regards,
    Community Support Team _ Lin Tu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • Saul85 Profile Picture
    35 on at

    Hello @v-litu-msft 

     

    Thanks for your answer, but still not working.

    The system can only replace strings, so the boolean is not supported apparently. Any suggestion on how to fix the problem?

     

    Regards

  • v-litu-msft Profile Picture
    Microsoft Employee on at

    Hi @Saul85,

     

    Boolean could also use the replace() function, you could use string() function convert whole object to string, then use json() function convert it back. 

    json(replace(replace(string(output('Compose')),'true','yes'),'false','no'))

    Could you please share an instance? 

     

    Best Regards,
    Community Support Team _ Lin Tu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • Saul85 Profile Picture
    35 on at

    Hi @v-litu-msft 

     

    Find below a screenshot. I just need to change the Boolean in the CSV, is already well displayed in the SP list.

     

    Captura de pantalla 2020-12-17 a las 3.21.37 p. m..png

     

     

    Thanks.

     

     

  • Verified answer
    v-litu-msft Profile Picture
    Microsoft Employee on at

    Hi @Saul85,

     

    OK, do like this:

    replace(replace(string(item()?['Read']),'True','YES'),'False','NO')

    Screenshot 2020-12-17 165213.jpg

     

    Best Regards,
    Community Support Team _ Lin Tu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • Saul85 Profile Picture
    35 on at

    Hello @v-litu-msft,

     

    Thanks a lot for your help, now is working.

     

    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 608

#2
Valantis Profile Picture

Valantis 416

#3
11manish Profile Picture

11manish 348

Last 30 days Overall leaderboard