cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ericonline
Community Champion
Community Champion

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
v-yamao-msft
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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (2,359)