Skip to main content

Hi,

I’m trying to make an automation which I already did on make.com. As can be seen below, when I get an order from Woocommerce, I create an XML file first and then post it with HTTP.

 

 

This is the format that I need to achieve:

 

I tried to do it with Code by zapier as can be seen below but the endpoint gave an error as invalid xml file

 

 

Any idea how I can solve the problem?

Hi @ihsanmercan 

Help info for using Code: https://zapier.com/apps/code/help

 

Do you even need to use a Code step?

Why not use the XML structure in the API request and map the variables into the desired locations within the XML structure?


Hi @Troy Tessalone,

if you mean this part, I don’t know how to configure it for the desired xml format

 

Because I need to define sku, qty and price information under <item>, so I don’t have any idea how to do that with the current features.

 


@ihsanmercan 

Try using a Custom Request.

Check the field descriptions for guidance.

Help: https://zapier.com/apps/webhook/help

 


Thank you @Troy Tessalone, that worked!