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 Apps / How to format values f...
Power Apps
Answered

How to format values from Gallery collection to JSON then CSV file

(0) ShareShare
ReportReport
Posted on by 310

Hoping someone can help me understand how to adjust formatting of some values going in or coming out of a JSON object.  

 

Canvas Power App

  • added a Download button so the user can download a CSV file of data from a Gallery. 
  • The process creates a collection from the gallery data,
  • JSONFile variable contains the data from JSON function. 
  • A Power Automate flow then runs to convert the JSON object to a CSV table, file created and saved to the users OneDrive. 

Download button OnSelect property is:

 

allan_t_0-1702073379548.png

Power Automate flow to create the file is:

allan_t_1-1702073620045.png

allan_t_0-1702074428225.png

 

Problem: some of values in the JSON object are ugly when put into the CSV table.  

Eg.

ResponseDetails column data contains all the html tags making it difficult for the user to read it.  

<div class="ExternalClassblahblahblah"><p>This Request will require full regression testing from end to end at warehouse</p></div>

LeadAssigned column data contains array symbols, making it difficult for the user to read. 

[{"DisplayName":"Smith, John"}, {"DisplayName":"Jones, Robert"}]

 

I'm sure there's a way to reformat this info so it's readable to the user.  I don't how or where to do it in the process.  Any help would be greatly appreciated.  Thank you. 

Categories:
  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @allan_t ,

     

    I've made a test for your reference:

    1\I assume there is an array:

    vbofengmsft_0-1702259898561.png

    2\My flow

    vbofengmsft_1-1702259935595.png

    vbofengmsft_2-1702260003595.png

    vbofengmsft_3-1702260041723.png

    1)

    item()['ResponseDetails']

    2)

    items('Apply_to_each')['LeadAssigned']

    3)

    item()['DisplayName']

    4)

    {
    "Column1":@{items('Apply_to_each')['Column1']},
    "LeadAssigned":@{body('Join')},
    "ResponseDetails":@{body('Html_to_text')}
    }

    Best Regards,

    Bof

     

     

  • allan_t Profile Picture
    310 on at

    This was really helpful, thank you again.   

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 395 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard