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 / ParseJSON within Power...
Power Apps
Unanswered

ParseJSON within PowerApps - Here is how

(0) ShareShare
ReportReport
Posted on by

ParseJSON is brand spanking new. Started looking at it last week and it seems to be working nicely. Had a few issues on how to get data out myself in a Gallery, into a label. Finally sorted it so I thought I'd share.

 

Here is an example of how I’m using it so far …

 

‘ThisItem.Answer’ …. In a gallery contains the following …

 

[

  "Text 1",

  "Text 2",

  "Text 3"

]

 

… using the following code ….

 

Concat(Table( ParseJSON( ThisItem.Answer )), Text(Value) & "

")

 

… gives me …

 

                Text 1

                Text 2

                Text 3

 

 

Also … If you’re dealing with JSON holding records and fields like below. In this example, the gallery records now holds the data below in ‘ThisItem.Answer’ ...

 

[

  {

    "name": "TheFileName.xlsx",

    "link": "https://YourSite.sharepoint.com/sites/SiteName/_layouts/15/Doc.aspx?sourcedoc=%7B5747E771-9325-475A-AA03-F746E3764231%7D&file=TheFileName.xlsx&action=default&mobileredirect=true"

  }

]

… you can use the following to get a field into a label ..

 

With( First(Table( ParseJSON( ThisItem.Answer ))),

    Value.name

)

 

.. which will give you … ‘TheFileName.xlsx’.

 

As you are working with tables and records, maybe a ForAll could be used as well. Not yet tried this, if you do, past your results in this thread.

 

🙂

Categories:
I have the same question (0)
  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @Anonymous 

    Yes...it is a long overdue function!!

     

    It would be nice to provide a schema to it (in the case of records and tables), but it is easy to convert from the untyped result to either one.

     

    Since ForAll is a table producing function, it is perfectly fit for returning a table of the parsed JSON.

    The docs for the ParseJSON function have a so-so example of converting a JSON table to a typed table in PowerApps.

     

    Thanks for sharing!

     

    Oh...and if you haven't looked at Named Functions yet - well worth a look!!

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard