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

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

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

 

 

API Flow.png

View solution in original post

2 REPLIES 2
yashag2255
Dual Super User II
Dual Super User II

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

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

 

 

API Flow.png

View solution in original post

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (3,222)