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

Extracting json data from SQL result set

I'm attempting to parse the json data from sql on-prem result set (parse json vs compose?) and I seem to be having issues.  

 

Currently Flow executes stored procedure (SQL On Prem)

I can see the resultset in the body of the output (field "sample1": "sampleval") 

 

I'd like to append value sample1 to variable.  I'm thinking a custom expression makes the most sense, just not sure of where to begin.

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Extracting json data from SQL result set

HI @KUNGFUPANDA559 

 

Parse JSON is your friend here. Then you can reference the fields directly and then use the compose to do your data parsing (like the append you mention in your email).

 

I don't know the details of your setup, but try the following workflow:

2019-12-26 16_32_19-Create your flow _ Power Automate.png

 

To concat:

concat(variables('test'),body('Parse_JSON')?['sample1'])

 

I think with this you would be able to solve your issue. Please let me know if you need more help.

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Cheers
Manuel

View solution in original post

2 REPLIES 2
Community Support Team
Community Support Team

Re: Extracting json data from SQL result set

Hi @KUNGFUPANDA559 ,

 

Could you please share a screenshot of the configuration of your flow?

Could you please share the run history of the flow?

 

Best regards,

Alice       

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Super User
Super User

Re: Extracting json data from SQL result set

HI @KUNGFUPANDA559 

 

Parse JSON is your friend here. Then you can reference the fields directly and then use the compose to do your data parsing (like the append you mention in your email).

 

I don't know the details of your setup, but try the following workflow:

2019-12-26 16_32_19-Create your flow _ Power Automate.png

 

To concat:

concat(variables('test'),body('Parse_JSON')?['sample1'])

 

I think with this you would be able to solve your issue. Please let me know if you need more help.

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Cheers
Manuel

View solution in original post

Helpful resources

Announcements
firstImage

Power Platform Online Conference

Speakers, submit your sessions now! Call for speakers ends Feb. 10!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (4,799)