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 Apps
Answered

JSON Array

(0) ShareShare
ReportReport
Posted on by 61

Hello,

 

I hope you can help me with this. I have an SQL Server view (columns Status and Summary). The Status column has JSON array data in the column.

 

Status                                                        Summary

{ "ID": 1 , "StatusName": "Active"}            Problem Description 1

{ "ID": 2 , "StatusName": "Closed"}           Problem Description 2

{ "ID": 3 , "StatusName": "In Progress"}    Problem Description 3

 

How can I get the data in this format in the collection, so I chart the data?

 

Status                              Summary

Active                               Problem Description 1

Closed                               Problem Description 2

In Progress                        Problem Description 3

 

 

Thank you so much!

 

 

Categories:
  • Verified answer
    RezaDorrani Profile Picture
    12,145 on at

    Hi @DMum 

     

    PA does not understand JSON

     

    You would have to play with strings 

    example:

     

    Substitute(Substitute( Last(Split(Label.Text,":")).Result,"""",""),"}","")

     

    Use AddColumns and accordingly update your collection (replace the label.text with the context of your column)

     

    --------------------------------------------------------------------------------
    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

  • DMum Profile Picture
    61 on at

    thank you so much! worked!!

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hello,

     

    I have been having issue with trying to write a valid JSON code on a APEND TO ARRAY VARIABLE, and I believe I have formatted it the right way but its still saying my code is not valid. Please can someone outline to me what I'm doing wrong. Thanks

    CapturecAMPAIGN.JPG

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 397 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 354

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard