Sending attachements to approvers

The advanced message editor section of the approvals template has been built to accept liquid markup. This enables you to pull in just about anything you need from the Zendesk ticket including attachments. 

By default, the message section will be a simple multi-field selector, but you can switch it to the advanced at the top right of the field like this:

Screen_Shot_2018-03-24_at_11_36_18_am.png

You'll see that this converts the existing ticket fields you're already selected into a text field with the fields automatically converted to Zendesk placeholders like this:

SweetHawk__-_Agent.png

All you then need to do is add this code where you want the attachments to appear: 

 

{% for comment in ticket.public_comments %}
  {% for attachment in comment.attachments %}
    <a href='{{attachment.url}}'>{{attachment.filename}}</a></br>
  {% endfor %}
{% endfor %}

 

It should look something like this:

SweetHawk__-_Agent.png

 

Finally, click 'submit' to save the change before testing it out.

 

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk