cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Super User
Super User

XML HTTP Response to Azure SQL using Flow?

Hello,

A colleague and myself are trying to figure out how to get XML from an HTTP response into an Azure SQL table. We can get the response to write to file on a shared drive, but can't seem to find info on how to parse out the XML and write it to a Azure SQL table.

Any leads?

Thank you!

1 REPLY 1
Highlighted
Community Support
Community Support

Re: XML HTTP Response to Azure SQL using Flow?

Hi @ericonline ,

 

Do you want to parse XML data then store it to Azure SQL table?

Please consider using function xpath:

https://docs.microsoft.com/en-us/azure/logic-apps/workflow-definition-language-functions-reference#x...

I have made the following test to parse XML data, please check the following configuration.

Add a compose action with the following XML data:

 

<?xml version="1.0"?>

<Users>

           <User1 type="System.String">mabel</User1>

</Users>

 

Add Compose 2 with the following code:

xpath(xml(outputs('Compose')),'string(/Users/User1)')

Then you could store the returned data to SQL Azure table.

Please take it for a reference.

1.PNG2.PNG

 

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

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
Users online (2,194)