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 / Choice Columns in JSON...
Power Apps
Unanswered

Choice Columns in JSON Output

(0) ShareShare
ReportReport
Posted on by 765 Super User 2024 Season 1

I am converting data entered by a user in a SharePoint list to JSON and passing it to a Power Automate Flow to create a CSV file that I the user downloads.  The process works perfectly.  The issue I am having is with Choice columns.  A Choice column shows in the CSV as follows:

 

Single Select Choice: { "Value":"Choice Value"}
Multi Select Choice: [{ "Value":"Choice Value 1"}, {"Value":"Choice Value 2"}]

 

My preference would to have the columns contain a quoted list, like below.

 

Single Select Choice: "Choice Value"
Multi Select Choice: "Choice Value 1, Choice Value 2"

 

What is the best way to accomplish this?  Do this in the Power App? Do this in the flow.  The data being downloaded to the CSV is multiple records, if that matters.  There are several columns within the out put that would need to be "Cleaned" before putting in the CSV file.

Any guidance/best practices would be appreciated.

 

Thank you.

 

Steven

Categories:
I have the same question (0)
  • emfuentes27 Profile Picture
    578 on at

    Hello @sperry1625 . Any update on this? I'm having the exact problem. Thanks.

  • emfuentes27 Profile Picture
    578 on at

    Got it. AddColumns will do.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi my current code on my powerapps onselect is "ForAll(Gallery8_5.AllItems,Collect(colGalCSV,{ MagazineID: ThisRecord.'Magazine ID', MaintenanceType: ThisRecord.MaintenanceType.Value, Replacement: ThisRecord.Replacement.Value, Date: ThisRecord.Date})); Set(varFileLink,Trial.Run(JSON(colGalCSV,JSONFormat.IncludeBinaryData&JSONFormat.IgnoreUnsupportedTypes)).filelink);Launch(varFileLink);Clear(colGalCSV)" and my value return in csv for maintenance type and replacement is "[{"Value":"Wet Cleaning"},{"Value":"Part Replacement"},{"Value":"Allignment"}]" & "[{"Value":"Top Panel"},{"Value":"Rear Panel"},{"Value":"Front Panel Screw"},{"Value":"Acrylic Holder"},{"Value":"Top Panel Screw"},{"Value":"Bottom Panel"},{"Value":"Bottom Panel Screw"},{"Value":"Front Panel"}]"  respectively. How do I only acquire the value like this "Wet Cleaning, Part Replacement

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi any update on this? 

    My current code on my powerapps onselect is "ForAll(Gallery8_5.AllItems,Collect(colGalCSV,{ MagazineID: ThisRecord.'Magazine ID', MaintenanceType: ThisRecord.MaintenanceType.Value, Replacement: ThisRecord.Replacement.Value, Date: ThisRecord.Date})); Set(varFileLink,Trial.Run(JSON(colGalCSV,JSONFormat.IncludeBinaryData&JSONFormat.IgnoreUnsupportedTypes)).filelink);Launch(varFileLink);Clear(colGalCSV)" and my value return in csv for maintenance type and replacement is "[{"Value":"Wet Cleaning"},{"Value":"Part Replacement"},{"Value":"Allignment"}]" & "[{"Value":"Top Panel"},{"Value":"Rear Panel"},{"Value":"Front Panel Screw"},{"Value":"Acrylic Holder"},{"Value":"Top Panel Screw"},{"Value":"Bottom Panel"},{"Value":"Bottom Panel Screw"},{"Value":"Front Panel"}]"  respectively. How do I only acquire the value like this "Wet Cleaning, Part Replacement

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
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard