Video Screencast Help
Symantec to Separate Into Two Focused, Industry-Leading Technology Companies. Learn more.
Endpoint Management Community Blog

Adding an Attachment File Link to the Helpdesk E-Mail Template

Created: 04 Dec 2007 • Updated: 04 Dec 2007 • 1 comment
joamreynoso's picture
0 0 Votes
Login to vote

If you need to add the attachment path to an e-mail template (to make attachments more noticeable and accessible to the help desk staff) all you have to do is add a small piece of code (listed below) into the appropriate e-mail template.

<a href=HDQUERY[[select a.url from dbo.workitem_attachment a where a.workitem_number = WORKITEM(workitem_number)]]>HDQUERY[[select a.name from dbo.workitem_attachment a where a.workitem_number = WORKITEM(workitem_number)]]</a>

These lines add a hyperlink to your template and will open the file attached to the incident.

Note: This works fine with just one attachment.

Comments 1 CommentJump to latest comment

JeffPeters's picture

This wouldn't work for me if I had more than one attachment. Instead I used the Attachment_List macro:

 <table>
     REGEX{{ATTACHMENT_LIST[[<TR><TD><a href="$$url$$">$$name$$</a></TD></TR>]]}}{{(<TR><TD TAG=0)(.*?)(</TR>)}}{{ }}
 </table>     

REGEX Must all be on 1 line.                          

0
Login to vote