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

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
Highlighted
Super User II
Super User II

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
Highlighted
Community Support
Community Support

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.

Highlighted
Super User II
Super User II

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
secondImage

August 2020 CYST Winners!

Check out the winners of the recent 'Can You Solve These?' community challenge!

thirdImage

Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

thirdimage

Power Automate Community User Group Member Badge

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

Users online (3,791)