cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
AutomationBuddy
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
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

AutomationBuddy
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
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

AutomationBuddy
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

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: 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!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (6,960)