Adding an Attachment File Link to the Helpdesk E-Mail Template
Created: 04 Dec 2007 | Updated: 04 Dec 2007 | 1 comment
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.
Blog Entry Filed Under:
The Endpoint Management Community Blog is the perfect place to share short, timely insights including product tips, news and other information relevant to the Endpoint Management community. Any authenticated Connect member can contribute to this blog.
Comments 1 Comment • Jump to latest comment
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.
Would you like to reply?
Login or Register to post your comment.