Question
Can I add custom ticket field values to email notifications?
Answer
Yes, add placeholders referencing the custom ticket field to the subject or body of your trigger or automation.
1. Open Admin Center, and navigate to Objects and rules > Tickets > Fields. Locate your custom ticket field, and copy the Field ID number.
2. Go to the trigger or automation sending the e-mail notification and add the placeholder there. You need to use the following format: {{ticket.ticket_field_<field ID number>}}
Example:
For the custom field ID number: 900001783063 you will use this placeholder: {{ticket.ticket_field_900001783063}}
The value of the custom ticket field in the ticket will be added to the email notification sent by your trigger or automation.
For more information, see the article: Using placeholders.
{{ticket.ticket_field_option_title_<field ID number>}}
Example:
{{ticket.ticket_field_option_title_900001783063}}
11 comments
shelley
Hi Team, Is it possible to include an example of how to set up a trigger for the email notification and the end results, with screenshots. I am a visual person so this would help quite a lot as I am having difficulties picturing how to set it up.
So my scenario, when a customer completes a 'Submit a Request' from from the Help Centre, I want the ticket fields to populate in the body of the support ticket, not just the left panel. It was suggested that placeholders could do this and according to this article I will need to set up a trigger to do this. Will this work for what I am trying to achieve?
I have a feeling not, as it seems it is only sending an email notification to an agent or group, not actually populating information into the ticket itself created via the request form.
0
Dane
shelley,
You are correct, triggers does not have the capability to update/create comments on a ticket.
0
Heather Rommel
shelley
Actually, you can, it just takes a few extra steps. The process is described here.
Basically, you create an API key
Create a Webhook target named Auto Private Comment
Create a trigger and add the text you want, I believe the placeholders should work.
0
Rudolph
shelley - The trick Heather Rommel links to is super powerful, but I'd caution against using it in automations because of race conditions. We sporadically lost data for a bit because an automation using the above trick was racing with another automation that sent data to Looker. Only one of the two automations would sporadically work each time they simultaneously fired.
I assume the risk still exists with triggers, but you have more control over ensuring the trigger doesn't race with other business rules that use APIs.
0
Kevin Froleiks
Is it possible at all to do this with Dropdown fields? From what I can see it displays the unique tag but not the customer facing text.
0
Gabriel Manlapig
Yes, this is possible! To display customer facing text or name associated with the drop-down fields, you will need to use this placeholder ticket.ticket_field_option_title_<field ID number>
For reference, please see the behavior below:
0
Dave Symonds
Can I increment a custom field that is a number in a trigger action?
0
Dane
For custom fields, decimal or number type, it can be used in trigger conditions and actions like the one below.
0
Adam Prince
hi, is there a placeholder that we can use for associating a checkbox value in a notification? Right now, we use {{ticket.ticket_field_valueid}} which shows in the notification as a value:

0
Paolo
It seems that you are using the correct format. For now, the placeholder
{{ticket.ticket_field_id}}
is the placeholder for custom checkbox. More information here: Using placeholders for a checkbox custom field.Best,
Paolo | Technical Support Engineer | Zendesk
0
Adam Prince
Thanks Paolo , is there a field that would generate yes/no values in notifications rather than 0?
-Adam
0