Is it possible to create pdf from code and attach it to a record?

andresgt
Mega Expert

What I'm looking for is if it's possible to create a PDF of one record when its closed and attach that pdf to another record.

Similar to Right Click on Header -> Export/PDF

Anyone knows if it's possible?

1 ACCEPTED SOLUTION

https://servicenowmantra.wordpress.com/2017/07/06/love-pdf-pdf-loves-you-too-pdf-generator/

This is the best i have seen so far!

You can change the rest message a little and get what you want.

View solution in original post

6 REPLIES 6

Nitesh Balusu
Giga Guru

Please check this out!

https://community.servicenow.com/community?id=community_article&sys_id=ba5c2aa1dbd0dbc01dcaf3231f961932

Let me try it out

https://servicenowmantra.wordpress.com/2017/07/06/love-pdf-pdf-loves-you-too-pdf-generator/

This is the best i have seen so far!

You can change the rest message a little and get what you want.

The code should be in a Script Include?