cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Advocate II
Advocate II

JSON Array

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!

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User II
Dual Super User II

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.

View solution in original post

3 REPLIES 3
Dual Super User II
Dual Super User II

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.

View solution in original post

thank you so much! worked!!

Anonymous
Not applicable

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

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (8,715)