Attempting to nest a handlebars function helper 'substring' inside a compare statement but getting this error : Cannot find function indexOf in object 502198.
The sales order record I am trying to push is the 502198 object as that is the internal id from BC. Below is the statement I am trying to use to pull only the first two letters of the sku name and then check if they are equal to BE.
{{#compare (substring products[*].sku "0" "2") "==" "BE"}} {{#each products[*].product_options }}{{this.display_name}}{{this.value}}{{/each}}{{else}}{{/compare}}
0
Comments
Ian Luck Are you trying to nest the handlebars function in a flow using the BigCommerce - NetSuite integration app, or are you trying to complete this action using a custom flow?
Please sign in to leave a comment.