How to generate a pdf from email script and attach to email
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2018 08:45 PM
Hi,
I have an email script that creates something like the following:
I want to also be able to generate a PDF from the same html above and attach it to the email. Any help is much appreciated.
Thank you
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2018 08:56 PM
https://community.servicenow.com/community?id=community_question&sys_id=126887eddb1cdbc01dcaf3231f96199d - check this post
Thanks
Rahamath

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2018 10:48 PM
I am not really sure about converting the HTML to PDF directly. But if all you want is a custom PDF to be attached to an email, then use PDF generator Plugin to achieve this.
1. activate the PDF generator Plugin
2. Create your custom PDF template with fillable fields and attach is to a record (so that you can pull it in step 3)
3. In your email script, generate the PDF as demonstrated in this link https://community.servicenow.com/community?id=community_blog&sys_id=4acc6265dbd0dbc01dcaf3231f961949
4. In step 3, make sure the PDF you generate is attached to the record on which the Notification is bieng generated
5. Check Include attachments checkbox for the notification
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2023 10:01 AM
I am trying to do the same thing. The link provided by Rahamath is no longer useful. Did you find a solution for this?