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 JSON int...
Power Apps
Answered

How to format JSON into excel through SharePoint file creation

(0) ShareShare
ReportReport
Posted on by 76

Hi,

 

I have followed the solution on the post below to get my collection into an excel spreadsheet:

https://powerusers.microsoft.com/t5/Building-Power-Apps/Generating-a-SharePoint-file-from-collection-data/m-p/2073088#M518441

 

This solution above puts each column of data into it's own excel column. However, one of the columns in my collection is a record, with multiple entries. The data ends up getting formatted into the column like this:

 

[{"Class":"Piping","Client":"Company, Company2","Name":"ASME BPVC Sec. IX"},{"Class":"Piping","Client":"Company","Name":"AS3992"}]

 

Is it possible to make it so that when this is passed into the spreadsheet, it gets formatted with a simple comma between each entry?

 

Thanks

Categories:
  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @MFEProjects ,

     

    Could you show Excel's current output and your desired output?

     

    Best Regards,

    Wearsky

  • MFEProjects Profile Picture
    76 on at

    @v-xiaochen-msft 

    No worries,

     

    This is the current output:

    current.png

    This is what I would like:

    wanted.png

    I want to remove the unnesaccary headers, such as 'Class' and 'Client' and only keep 'Name'. I would like to remove the braces and also the quote marks.

     

    Something I also forgot in my original question... I'm doing all of this through Automate and the Create File component as you can see in the post I linked in my question. Is it possible to make the top row a header automatically when creating the file?

     

    Had to make the tables images since for some reason the forum's table system wasn't working.

     

    Thanks

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

    Hi @MFEProjects ,

     

    I made a sample for you.

    vxiaochenmsft_0-1679456776431.png

    vxiaochenmsft_1-1679456783390.png

    vxiaochenmsft_2-1679456793957.png

    'PowerAppV2->CreateCSVtable'.Run(JSON(DropColumns(AddColumns(Col,"temp",Concat(Test3,Name,",")),"Test3")))

     

    Result:

    vxiaochenmsft_3-1679456815926.png

     

    Best Regards,

    Wearsky

  • MFEProjects Profile Picture
    76 on at

     

    @v-xiaochen-msft 

     

    Thanks, that worked perfectly.

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