How Do I Access HTML Templates From Script Include?

Brad Cupp
Giga Contributor

Hello,

I am trying to create a background process that can create a PDF of a record and then attach that PDF to that same record. The way I am currently going about that is by using a Script Include function that will be passed the sys_id of the record that needs to be turned into a PDF. I would then like to access an HTML Template I created and populate it with data using the Script Include. However, I cannot find any documentation for working with HTML Templates within a Script Include. Is this possible?

As an FYI, this application does not have HR Service Delivery.

1 ACCEPTED SOLUTION

Brad Cupp
Giga Contributor

I found the documentation at the following link addresses my issues. Thanks!

Document generation methods

View solution in original post

2 REPLIES 2

Sumit Pandey1
Kilo Guru
Kilo Guru

Not sure but what if you create an email template and gliderecord to that email template in your script include?

Brad Cupp
Giga Contributor

I found the documentation at the following link addresses my issues. Thanks!

Document generation methods