Trigger condition on Brand | Community
Skip to main content

Trigger condition on Brand

  • February 7, 2023
  • 1 reply
  • 0 views

Swapnil13

Hello, so I am trying to set up a multi-brand zendesk account. I know i can go to the admin centre and create a new trigger selecting something like

Brand is abc

But is it possible to achieve this if I create the trigger via the API? I have tried this:

"conditions": {
            "all": [{
                "field": "Brand",
                "value": "is",
                "operator": "abc"
            }]
      }

but i get this error:

{
    "error": "RecordInvalid",
    "description": "Record validation errors",
    "details": {
        "base": [{
            "description": "Invalid rule target: Brand"
        }]
    }
}

so how can I create a trigger with a condition on Brand using the zendesk API?

1 reply

Swapnil13
  • Author
  • February 7, 2023

so this will work

{
"field":"brand_id",
"operator":"is",
"value":"<brandId>"
}

leaving this question out here for anyone else stuck in this!