ambitious-aqua•2mo ago
Dynamic carousal via api response not working
I have an api call that returns this data
in data.order.items
[
{
"product": {
"_id": "6868ced0ab708aac80536132",
"name": "Generic Cotton Cheese",
........
},
.......
},
] This is an array of products . I have attached it to a function and trying to make dynamic carousal const { orderItems } = args.inputVars; const parserdItems = JSON.parse(orderItems) parserdItems.forEach((item, index) => { ..... ..... Now this always fails with "payload": { "ref": { "type": "node", "nodeID": "686bf2a6091789856d18bb64", "nodeType": "function", "diagramID": "64dbb6696a8fab0013dba194" }, "level": "warn", "message": "execution failed", "context": "Function", "metadata": { "error": {} } In logs i can variable is changed and array is assigned to it , Function step always fails. When i check only function step with inputting data it works but with apu it does not.
] This is an array of products . I have attached it to a function and trying to make dynamic carousal const { orderItems } = args.inputVars; const parserdItems = JSON.parse(orderItems) parserdItems.forEach((item, index) => { ..... ..... Now this always fails with "payload": { "ref": { "type": "node", "nodeID": "686bf2a6091789856d18bb64", "nodeType": "function", "diagramID": "64dbb6696a8fab0013dba194" }, "level": "warn", "message": "execution failed", "context": "Function", "metadata": { "error": {} } In logs i can variable is changed and array is assigned to it , Function step always fails. When i check only function step with inputting data it works but with apu it does not.


0 Replies