Trouble with Compare

Comments

3 comments

  • Tyler Lamparter Principal Product Manager
    Awesome Follow-up
    Engaged
    Top Contributor
    Answer Pro
    Celigo University Level 4: Legendary

    Justin Hughes this one is working for me

    {{#compare items[*].refundType "==" "store-credit"}}True{{else}}False{{/compare}}

     

    What error do you get for this one? Also, what system are you going to with this?

    0
  • Justin Hughes

    Hi Tyler Lamparter, thanks for your response. This is a custom flow going from Happy Returns into Netsuite. When I run your particular flavor I'm getting:

    Failed to generate field value from template: {{#compare items[*].refundType "==" "store-credit"}}True{{else}}False{{/compare}}. Details: Parse error on line 1: {{#compare items[*].refundType -----------^ Expecting 'CLOSE_RAW_BLOCK', 'CLOSE', 'CLOSE_UNESCAPED', 'OPEN_SEXPR', 'CLOSE_SEXPR', 'ID', 'OPEN_BLOCK_PARAMS', 'STRING', 'NUMBER', 'BOOLEAN', 'UNDEFINED', 'NULL', 'DATA', 'SEP', got 'INVALID'.
    0
  • Tyler Lamparter Principal Product Manager
    Awesome Follow-up
    Engaged
    Top Contributor
    Answer Pro
    Celigo University Level 4: Legendary

    Justin Hughes when you are on the mapper for NetSuite, does it preview correctly? Can you screenshot aht setup?

    0

Please sign in to leave a comment.