ZIS flow working with multiple variables in a transform action

3 Comentários

  • Greg Katechis
    Zendesk Developer Advocacy

    Hi Nawed! I haven't had a lot of time to play around with ZIS, however, I'm wondering if the issue has to do with the single quotes that you use in the "expr":key. Could you switch that to double quotes and then remove the trailing comma if it's the last parameter in that object and let me know if that resolves it?

    0
  • Nawed Farooque

    Hey Greg!

    I tried it in this way:
    "expr": ".identities[] | select(.value == {{$.input.user_event.previous}}) | .id | tostring"

     
    Result:
    Action Error: zis:common:transform:Jq ActionState(find_phone) Error: Encountered parsing error: error parsing jq output: unexpected token "{"

    And in this way:
    "expr": ".identities[] | select(.value == '{{$.input.user_event.previous}}') | .id | tostring"

    Result:
    ActionState(find_phone) Error: Encountered parsing error: error parsing jq output: unexpected token "'"
     
    Any other idea?
    0
  • Nawed Farooque

    Ok it works with passing data before.

    0

Por favor, entrar para comentar.

Powered by Zendesk