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

Jaspal Singh
Mega Patron
Mega Patron

Hi Irfan,



I think it would be better to use the Create event activity include necessary notification & then have the option to use the include attachment checkbox instead of using notification activity.



Also, as per best practice it is better to use events rather than single/multiple notifications as this would help in handling mulitple notifications in the same place.


Jaspal,



I tried event activity but the problem is it taking as snap shot in the email but not as the attachment. We want it as an attachment.



Under Notification i chekced Onclude Attachments but still it is taking as snapshot under the body, we wnat it as Attachment to the email


Hello Chuck or Mike,



Can you please help me out on this ?



We need attachment as attached but i can see as printed in body when i use Event queue activity under workflow:



Michael.Fryctomasi


The Include Attachment field, when checked, will include all attachments from the source record referenced. If you want a specific attachment, you will need to use a mail script to include it as documented here.



Document attachments on an email notification