cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

Using Power Automate/Microsoft Flow to convert json data into SQL server

Hi, I was wondering if anyone knows how to convert JSON data into a structure that can be loaded in a SQL table. 

 

My current flow looks something like this

 

Power Automate Question.png

 

AutomateBuddy

2 ACCEPTED SOLUTIONS

Accepted Solutions
Highlighted
Dual Super User
Dual Super User

Re: Using Power Automate/Microsoft Flow to convert json data into SQL server

Hey @AutomationBuddy 

 

You can do something as shown in the image below for the SQL insert row action too: 

kkf.PNG

 Note that you need to appropriately provide the JSON schema and if you are not sure about the schema, run the flow and copy everything from the http action output and in the parse json action select the generate schema from payload option and paste everything here and it will generate the schema for you that can be used to identify individual attributes in the dynamic selector for the consecutive actions. 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

Highlighted
New Member

Re: Using Power Automate/Microsoft Flow to convert json data into SQL server

Thanks @yashag2255 , I got it working now. See my flow below.

 

 

API Flow.png

View solution in original post

2 REPLIES 2
Highlighted
Dual Super User
Dual Super User

Re: Using Power Automate/Microsoft Flow to convert json data into SQL server

Hey @AutomationBuddy 

 

You can do something as shown in the image below for the SQL insert row action too: 

kkf.PNG

 Note that you need to appropriately provide the JSON schema and if you are not sure about the schema, run the flow and copy everything from the http action output and in the parse json action select the generate schema from payload option and paste everything here and it will generate the schema for you that can be used to identify individual attributes in the dynamic selector for the consecutive actions. 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

Highlighted
New Member

Re: Using Power Automate/Microsoft Flow to convert json data into SQL server

Thanks @yashag2255 , I got it working now. See my flow below.

 

 

API Flow.png

View solution in original post

Helpful resources

Announcements
firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

Join the new Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

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!

Top Solution Authors
Top Kudoed Authors
Users online (7,093)