Automatically include attachments from TASK, on Email client , Client Template

Daniel O_Connor
Kilo Guru

Hi all,

I've created a Client Template for the first time, to be used in the Email Client I've enabled on a custom app. End users pretty happy with what it's doing (Really like how easy it was to make the template) but they have asked is it possible for the template to automatically include as attachments, any attachments present on the Task itself?

I can't see any obvious option for this. So to re-iterate, a TASK is logged with attachments, our users then use the email client to email a third party. And they want the attachments on the TASK to appear on the template, so they dont have to download and re-attach.

I'm not seeing how I make the attachments present on the TASK, populate onto the mail. (The attachment you see is an img from a signature that is to appear on every outbound mail in this app) 

find_real_file.png

16 REPLIES 16

Could you outline where this tickbox people are referencing is? I can't seem to see one when I open the email client from the ticket, or reviewing the template

Mukesh Sharma
Giga Expert

Hi  , In the related links , you need to click on advanced view to see that checkbox . 

 

find_real_file.png

Oh, but I'm not using notifications. 

 

I'm using the e-mail client from the ticket if that makes sense. These are not triggered notifications, these are e-mails sent from a ticket by a user.

The template being generated is a Client Template for use with the Email client function 

 

find_real_file.png

 

find_real_file.png

Mukesh Sharma
Giga Expert

Hi , 

 

You can use something like this in your email client template . 

template.print ( 'Attachment: <a href="/sys_attachment.do?sys_id=' + gr. sys_id + '">' + gr. file_name + '</a>\n ' ) ;

here you have to identify the sys id of attachment on current record . that you can easily find by queries sys_attachment table .

Is the above only to identify a specific attachment?

They would be different attachments on every record