cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
Super User II
Super User II

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

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

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
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Microsoft Ignite

Microsoft Power Platform: 2021 Release Wave 1 Plan

Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (71,626)