Hey @Mulen, so the Function node would need to return JSON data. Meaning you’d need to return a product
JSON key rather than XML, for example by running code like this:
return {
products: items.map(item => {
return {
product: item.json
}
})
};
The conversion from JSON into XML is then handled by the subsequent XML node, returning the desired data structure:
Example Workflow: