cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
DMum
Level: Powered On

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
Dual Super User

Re: JSON Array

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
Dual Super User

Re: JSON Array

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

DMum
Level: Powered On

Re: JSON Array

thank you so much! worked!!

MotunzTade
Level: Powered On

JSON Array

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
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (6,907)