Can I add custom ticket field values to email notifications?

Have more questions? Submit a request

17 Comments

  • Deidre Jones
    Comment actions Permalink

    How do I find the field ID for system fields. Looking for Subject field id

    0
  • Jessie Schutz
    Comment actions Permalink

    Hi Deidre!

    Numerical field IDs are only given to custom ticket fields. If you tell me more about what you're working on, I might be able to help you figure out where to find what you need!

    0
  • Vladan Jovic
    Comment actions Permalink

    I'm wondering if there a way to put custom user (requester) field values into a ticket?

     

     

    0
  • Chris Bulin
    Comment actions Permalink

    I've added a ticket field (a checkbox) to our auto response in our sandbox, but when I send it to a test account, there is no field showing to the end user. 

    Am I missing something?

    0
  • Gretchen Ladd
    Comment actions Permalink

    Hey Chris! The process is a bit different for custom checkbox fields.

    You can use placeholders in combination with Liquid markup to verify if a checkbox has been selected on a ticket and provide customized output based on the checkbox status (checked, or not checked).

    When you use Liquid markup if/else/case statements for checkbox custom ticket fields, keep in mind that the checkbox field has a value of 0 or 1, not false or true. For example:
     
    {% if ticket.ticket_field_(field_id) contains ‘0’ %}
    checkbox is unchecked
    {% else %}
    checkbox is checked
    {% endif %}
     
    Where you can replace the "checkbox is unchecked/checked" text with whatever text you would like to be displayed.
     
    Hope this helps!
    1
  • Chris Bulin
    Comment actions Permalink

    Thanks Gretchen!

    0
  • Jimmy Rufo
    Comment actions Permalink

    Would adding this to notifications make the field value visible to all recipients, or just agents?

    0
  • Jon Daniels
    Comment actions Permalink

    Hey, Jimmy!

    Adding this will display the value to anyone who can see the public comment (including end-users, if they are on the communication), as the value is rendered in text when the agent submits the macro comment.

    Hope this helps!

    0
  • Leonardo
    Comment actions Permalink

    Hi, can I ask a user to add/assign custom ticket field values to email notifications rather than from the ticket form?

    0
  • Brett - Community Manager
    Comment actions Permalink

    Hi Leonardo,

    Check out my response to your post here.

    0
  • Leonardo
    Comment actions Permalink

    Hi Brett

     

    Awesome, thx for explaining, I'll take a look at the article you mentioned.

    0
  • Brett - Community Manager
    Comment actions Permalink

    Happy to help Leonardo :)

    0
  • Anurag Reddy
    Comment actions Permalink

    Hello Nicole,

    Can I fetch text from the Email subject or (tags from an end-user) and add it to a custom field?

    0
  • Devan
    Comment actions Permalink

    Hello Anurag Reddy,

    The ability to fetch text from the email subject and add it to a custom field is currently not possible as a feature. Using a Notify Targets back at your own Zendesk account is a possible workaround but something we don't typically recommend due to this sometimes proving problematic, but I've gone ahead and linked an article that should help with this workaround.

    Notifying external targets

    Best regards. 

     

    0
  • Larry Goldstein
    Comment actions Permalink

    Hi,

     

    I tried adding a custom field to an email notification using the following format from this thread.

    Example:

    For the custom field ID number: 27294625 you will use this placeholder: {{ticket.ticket_field_27294625}}

    The content in the email displayed the Tag value for the custom field not the Field Value, which is what I wanted displayed. 

    How do I get it to display the Field Value and not the Tag value.

    Thanks,

    -Larry

    0
  • Larry Goldstein
    Comment actions Permalink

    Another issue we're having is that when we create a macro to send an email to our customer, we include the Add CC field, but list of names available for that field is only internal agents from our company. We want to include in the CC external end-users who are the people at our customer who need to be copied on these tickets.

    Thanks,

    -Larry

    0
  • Devan
    Comment actions Permalink

    Hello Larry Goldstein,

    For getting it to display the Field Value and not the Tag value, I would recommend using {{ticket.ticket_field_option_title_27294625}}. As for your second question, that is something that isn't natively possible since you can't ass external email into the CC field. 

    Best regards. 

    0

Please sign in to leave a comment.

Powered by Zendesk