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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Upcoming Events

Experience what’s next for Power Automate

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Users online (4,900)