Hello,
I currently use this code:
{
"ticket": {
"custom_fields": [
{
"id": field_ID,
"value": "{{ticket.organization.custom_fields.name}}"
}
]
}
}
This code automatically pulls the organization field into a custom ticket field when a ticket is created.
However, I want this action to apply only when the ticket requester’s email does not contain a specific domain (e.g., @sample-email.com). Is there a way to exclude tickets from requesters with certain email domains from this action?
Thank you!
Could you share the context of where this code is being run i.e via a webhook, ZAF app, or somewhere else?