cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
DMum
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
RezaDorrani
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
RezaDorrani
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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Did you miss the call? Check out the recording here!

Top Solution Authors
Top Kudoed Authors
Users online (21,383)