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 / Exporting values from ...
Power Apps
Unanswered

Exporting values from objects to CSV

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hey there 🙂

New day new problem... 🤣

 

Settings (the working part):

- SharePoint list with dropdowns, lookups, ect...

- Using this list in PowerApps in a gallery

- saving data from this gallery in a collection: 

 

ClearCollect(Collection1; ShowColumns(Gallery1.AllItems;"Besteller";"Verwendung"))

 

- parsing this via PowerAutomate in a CSV file

 

Exporttest.Run(JSON(Collection1;JSONFormat.IndentFour))

 

JanaH_0-1615654223326.png

Everything fine!

 

Now to my problem: The output in my CSV file is weired. 

JanaH_1-1615654315055.png

Instead of only "Jana" the flow saves "{Value":"Jana"} in my file. 

 

Why? Because it is an object? 

 

{
 "type": "array",
 "items": {
 "type": "object",
 "properties": {
 "Besteller": {
 "type": "object",
 "properties": {
 "Value": {
 "type": "string"
 }
 }
 },
 "Verwendung": {
 "type": "string"
 }
 },
 "required": [
 "Besteller",
 "Verwendung"
 ]
 }
}

 

 

Is there any way to "fix" that? I think somewhere I made a mistake, but where... 🤔

Categories:
I have the same question (0)
  • mahoneypat Profile Picture
    1,720 on at

    It seems like it is working but that your input collection may not be correct.  How was it created?  Did you put " " around the Value column name when creating that table?

     

    Regards,

    Pat

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I've done it via PowerAutomate:

    Parse JSON --> Generate from sample

     

    see here: https://youtu.be/AUHm8r3Y5nY?t=829 

  • mahoneypat Profile Picture
    1,720 on at

    Looking at your JSON schema again, the Bestseller field is a property of sub object while the Verwendung field is not.  In your CSV action in your Flow, use the Custom/Manual option (instead of Automatic) and you can access the Bestseller field with an expression with item().Bestseller.Value  while the Verwendung one stays the same as item().Verwendung (add that field with Dynamic properties and then hover over it to confirm.

     

    Regards,

    Pat

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hey Pat,

     

    I'm not quite sure that I've done it the right way...

     

    JanaH_0-1615733345123.png 

     

    Hovering: 

    JanaH_1-1615733439850.png

     

     

     

  • axy5093 Profile Picture
    2 on at

    Hi @Anonymous @mahoneypat , i have a similar problem where two of of my values is being exported as an object. 

     

    Below is my JSON Schema, 

     

    {

        "type": "array",

        "items": {

            "type": "object",

            "properties": {

                "A": {

                    "type": [

                        "string"

                   ]

                },

                "B": {

                    "type": [

                        "string"

                   ]

                },

                "C": {

                    "type": [

                        "object"  //Had to add object as the field is a SharePoint choice field

                      ] 

                },

                "D": {

                    "type": [

                        "object"

                    ]

                },

      },

            "required": [

                "A",

                "B",

                "C",

                "D",

                ]

        }

    }

     

    Fields C and D get exported as values just like @Anonymous bestseller field

    Am new to PowerApps appreciate any help i can get. 

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 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard