How to generate a pdf from email script and attach to email

Yahya
Kilo Explorer

Hi, 

I have an email script that creates something like the following:

find_real_file.png

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

3 REPLIES 3

Rahamath
Tera Expert

https://community.servicenow.com/community?id=community_question&sys_id=126887eddb1cdbc01dcaf3231f96199d -  check this post

 

Thanks

Rahamath

Aman Gurram
Giga Expert

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

jfosheim
Tera Contributor

I am trying to do the same thing. The link provided by Rahamath is no longer useful. Did you find a solution for this?