web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Power Apps Collection ...
Power Apps
Unanswered

Power Apps Collection from a JSON Blob

(0) ShareShare
ReportReport
Posted on by 90

I'm using Power Automate to retrieve large volumes of data from a SP List to get around delegation. The return is a JSON blob, in this format: 

zematsirhc_0-1707414605485.jpeg

 

To access the fields, the template I'm using has this: 

Table(ParseJSON(QueryResult))

And then you access the column like this: Value.column_name

 

My issue is that I have a huge app with hundreds of controls all mapped to the column names, so I don't want to edit them all to be Value.column_name.

 

Does anyone know how to transform the table to use the original column names?

Categories:
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    53,335 Super User 2025 Season 2 on at

    @zematsirhc 

     

    You need to use the Rename function and rename them all

    I am too lazy to link my own site lol.. So here are some folks I have found to be very helpful and accurate

    Rename The Columns In A Collection - Matthew Devaney

    AddColumns, DropColumns, RenameColumns, and ShowColumns functions - Power Platform | Microsoft Learn


    If I have helped you, I would really appreciate if you please Mark my answer as Resolved/Answered, and give it a thumbs up, so it can help others

    Cheers

    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

  • zematsirhc Profile Picture
    90 on at

    This isn't quite working. Since the table doesn't directly have the columns (field_2, field_3), etc., I'm unable to rename them. I also tried Value.field_2, but both are giving me the error, "The specified column does not exist."

    My guess is that it's because of the Table(ParseJSON()) structure of the data.

  • Verified answer
    zematsirhc Profile Picture
    90 on at

    Okay, I ended up figuring it out. 

    The JSON was nesting all the columns below a "Value" column. I needed to use 

     

    ClearCollect(NewCollection, AddColumns("New Column Name", Value.Column_name)); 

     

    which allowed me to bring the values up. I also had to cast each column with Text() or Value() since PowerApps couldn't infer the data types from JSON.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard