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}}
15 comments
Adam Prince
Thanks 1265038659329 , is there a field that would generate yes/no values in notifications rather than 0?
-Adam
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
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
Evelyne
En ce qui concerne le format, j'ai fait un test dans mon compte en utilisant la fonction "split" mentionée ici: Liquid markup for designers, et ceci peut-être utilisé pour enlever "00:00:00 +0000" de la date.
Voici un example avec un champ de date:
ticket.organization.custom_fields.start_date | split: "00:00:00 +0000"
Bonne journée!
0
Jérôme BOUILLIER
Top !! Merci beaucoup Evelyne pour vos renseignements.
Dans le cas d'un champ Date, y a t'il une solution pour définir le format. Je le vois apparaitre sous cette forme : 2023-08-20 00:00:00 +0000
J'aimerai bien voir apparaitre uniquement la date.
Merci pour votre retour et pour votre aide.
Bonne journée.
0
Evelyne
Merci de votre question!
Vous pouvez en effet utiliser les placeholders afin d'ajouter un champ personnalisé de l'organisation à un commentaire de ticket ou bien dans une notification email.
Cela se présente comme ceci:
ticket.organization.custom_fields.field_key
Comme tous les placeholders, ceci est évidemment placé entre .
Si le champs personnalisé en question est une liste déroulantes, il faut ajouté "title" à la balise, comme ceci
ticket.organization.custom_fields.field_key.title
Voici un exemple illustré d'un placeholder utilisé dans un ticket dans un compte de test:
J'espère que ceci vous sera utile!
Bonne journée à vous
0
Jérôme BOUILLIER
Bonjour,
Est-il possible d'ajouter un champ personnalisé de l'organisation dans un email de notification ?
Merci pour votre retour.
0
Dane
For custom fields, decimal or number type, it can be used in trigger conditions and actions like the one below.
0
Dave Symonds
Can I increment a custom field that is a number in a trigger action?
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
Sign in to leave a comment.