Skip to main content

Notifications

Community site session details

Community site session details

Session Id : +RFeAmm//Q/7plvXaCsbCl
Power Automate - General Discussion
Answered

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

Like (0) ShareShare
ReportReport
Posted on 7 Nov 2019 02:33:13 by 11

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

  • JohnDuchock Profile Picture
    3 on 15 Feb 2023 at 20:35:28
    Re: Using Power Automate/Microsoft Flow to convert json data into SQL server

    This worked brilliantly for me... however i had to set up the gateway on my laptop for proof of concept...
    would you guys suggest a dedicated virtual machine for hosting the gateway functions ?

  • h44444n Profile Picture
    18 on 25 Oct 2021 at 14:06:52
    Re: Using Power Automate/Microsoft Flow to convert json data into SQL server

    thanks for sharing your solution.

     

    How did you design the SQL table to import the json data into? 

     

    I'd like to extract the column names from the JSON and generate an create table statement but I'm unsure how to do it. 

  • Verified answer
    AutomationBuddy Profile Picture
    11 on 12 Nov 2019 at 02:01:41
    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

  • Verified answer
    yashag2255 Profile Picture
    24,442 Super User 2024 Season 1 on 07 Nov 2019 at 14:13:57
    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!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - General Discussion

#1
David_MA Profile Picture

David_MA 10 Super User 2025 Season 1

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 8 Super User 2025 Season 1

#3
ankit_singhal Profile Picture

ankit_singhal 7 Super User 2025 Season 1

Overall leaderboard