メインコンテンツへスキップ

How to display a ticket custom field in an email template or Help Center template - ナレッジベース / Using Deskpro / Admin - Deskpro Support

How to display a ticket custom field in an email template or Help Center template

作成者一覧

Ticket custom fields can be added to triggers, escalations, email templates, and Help Center templates.  By adding a custom field item ID in a variable and including it in a trigger subject line or email template, it is possible to reference that custom field and populate the subject or template with the respective field. 

Custom fields in Trigger Action 'Set Subject':

In order to add custom fields to the subject of a ticket through the Trigger automation, you will need to:

1. Find the ID number of the field. 

2. Replace the N in the following variable {{ticket.fieldN}}with the ID number of the field.

3. Add the variable to the 'Set subject' Trigger Action. Depending on the type of trigger, this setting will prompt a change to the ticket subject line which will be populated by the custom field instead.

Custom fields in Email templates:

In order to add custom fields to Email templates, you will need to:

1. Find the ID number of the field. 

2. Replace the N in the following variable {{ render_ticket_custom_field(ticket, N, 'text') }} with the ID number of the field.

3. Add the variable to the Email template and then Save.

Note


For user custom fields this would be: {{ render_person_custom_field(ticket_person, N, 'text') }}


Custom fields in Help Center templates:

In order to add custom fields to Help Center templates, you will need to:

1. Find the ID number of the field. 

2. Replace the N in the following variable {{ticket.renderCustomFieldN | raw}} with the ID number of the field.

3. Add the variable to the Help Center template.

参考になった 役に立たない

2 人中 1 人がこのページは参考になったと答えました

コメントを追加

コメントを投稿するには、ログインまたは登録が必要です。

パスワードをお忘れですか?