cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
Community Support Team
Community Support Team

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
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (4,995)