To get multiple data through XML

In the Celigo HTTP request body, we can provide data in XML format

To get multiple data( eg: items ) through that XML code, we need to include a loop in the code, for this, we can use {{each data}}…{{/each}}

Example code to use this:

{{#each data}}

<message>

<messageID>{{add @index 1}}</messageID>

<operationType>Update</operationType>

<inventory>

<SKU>{{SKU}}<SKU>

</inventory>

</message>

</each>

Leave a comment

Your email address will not be published. Required fields are marked *