cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
AutomationBuddy
Level: Power Up

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
Level: Power Up

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
Level: Power Up

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
thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (5,841)