Using Create Event to send Notification from Workflow with Attachment
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2019 11:34 AM
So this is my Create Event in the workflow (the "event name" and email notification are each on the SC_TASK table)
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2019 11:48 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2019 11:52 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2019 11:51 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2019 01:26 PM
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