Handlebar only run once for Array.
Hi,
I am having issue mapping inventorylocation for every line items (It only maps the first one while leaving the rest blank) using the following handlebars:
{{#if source_name}}{{#compare source_name "==" "pos"}}22{{else}}13{{/compare}}{{/if}}
{
"source_name": "pos",
"line_items": [ ...items ]
}
0
-
Solution provided by support team:The updated handlebar expression for the field "items : Inventory Location (Internalid) :
{{#if line_items[*].id}}{{#compare source_name "==" "pos"}}22{{else}}13{{/compare}}{{/if}}
1
Please sign in to leave a comment.
Comments
1 comment