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

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Users online (11,275)