Hi @orionabrams,
Thank you for the response. But I am not sure how do I get that "." to be part of the final expression. I am using AFE Ver 2.0.
Here are the "Resources available for your handlebars template":
{
"record": {
"success": true,
"message": "Styles retrieved",
"errors": "",
"result": {
"styles": [
{
"item_number": "30005-11",
"upc_code": "01915173000511",
"display_name": "No-Promo-Style-SA XXS"
},
{
"item_number": "30005-12",
"upc_code": "01915173000512",
"display_name": "No-Promo-Style-SA XS"
},
{
"item_number": "30005-13",
"upc_code": "01915173000513",
"display_name": "No-Promo-Style-SA S"
},
{
"item_number": "30005-14",
"upc_code": "01915173000514",
"display_name": "No-Promo-Style-SA M"
}
]
}
},
"connection": {
"name": "Staging",
"unencrypted": {},
"encrypted": "********"
},
"export": {
"name": "Export New SKUs from System"
},
"settings": {
"integration": {},
"flow": {},
"connection": {},
"export": {}
}
}
Here is my handle bar template:
{
"styles":[
{{#each record.result.styles}}
"{{item_number}}"
{{#if @last}}{{else}},{{/if}}
{{/each}}
]
}
On preview the expression works fine and gives the following result.
{
"styles":["30005-11",
"30005-12",
"30005-13",
"30005-14"
]
}
However, when this expression is evaluated at runtime (when the flow runs), it gives the following error.
Could not compile handle bar \"{{{result.styles[*].item_number}}}\" because \"Parse error on line 1:\n {{{result.styles[*].item_numbe\n----------^\nExpecting 'ID', got 'INVALID'\" .Please correct and retry"
Also, I cannot find any documentation on using AFE Ver 1.0. Otherwise, I would have tried that to see if this issue is specific to new constructs in version 2.0.