Using Create Event to send Notification from Workflow with Attachment

Steven Parker
Giga Sage

So this is my Create Event in the workflow (the "event name" and email notification are each on the SC_TASK table)

find_real_file.png

find_real_file.png

find_real_file.png

find_real_file.png

So it sends the notification, but doesn't include the PDF attachment on the email...I thought that "Include Attachments" check box would attach the file to the email it sends.  I've even placed the PDF file on the "Create Event" in the workflow, the event itself in the registry, and on the notification, but the attachment just doesn't attach to the email.

How do I get that PDF file to attach to the email? Not a link...just actually attached to the email. 


Please mark this response as correct and/or helpful if it assisted you with your question.
Steven
21 REPLIES 21

Nitin_NOW
Tera Guru

Hello Steven

I would recommend to 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>' ) ;

Then in the email notification under Message HTML you can call the notification email script name: ${mail_script:nameof attachment}

Please hit correct based on impact of solution.

Thanks

 

 

 

 

That's a link...I don't want to use a link to the file.  I can already do that.  I am trying to figure out how to add the actual file to the email.


Please mark this response as correct and/or helpful if it assisted you with your question.
Steven

Prateek kumar
Mega Sage

Check this:

https://community.servicenow.com/community?id=community_question&sys_id=797a87e9db5cdbc01dcaf3231f961970


Please mark my response as correct and helpful if it helped solved your question.
-Thanks

Steven Parker
Giga Sage

Has anyone done this?  I can create links to the attachments in emails...that isn't a problem.  What I am trying to do is attach the actual PDF file to an outgoing notification.  


Please mark this response as correct and/or helpful if it assisted you with your question.
Steven