Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to add attachment to workflow notification activity

shaik_irfan
Tera Guru

Hello,

We have an existing notification on Workflow where we need add the attachment to the same notification, can anyone please guide me how to process this ?

1 ACCEPTED SOLUTION

Hello Irfan,



I think best practise is to use Event queue activity since you are workflow   pre-designed you try something like below:



Create a notification email script under system notification click on New and use   template.print ( 'Attachment: <a href="sys_attachment.do?sys_id=sys_id of the attachment">Name of the attachment</a>' ) ;




And under Workflow notification activity under Message box you can call this email notification script name: ${mail_script:nameof attachment}


View solution in original post

6 REPLIES 6

Hello Irfan,



I think best practise is to use Event queue activity since you are workflow   pre-designed you try something like below:



Create a notification email script under system notification click on New and use   template.print ( 'Attachment: <a href="sys_attachment.do?sys_id=sys_id of the attachment">Name of the attachment</a>' ) ;




And under Workflow notification activity under Message box you can call this email notification script name: ${mail_script:nameof attachment}


Hello-will this work if the attachment is not the same consistently?  I have a use case where I need to pull an attachment from a record but it isn't the same attachment every time.

Thanks,

Heather