How to generate a custom PDF?

Community Alums
Not applicable

Hi,

I need to have a button on incident. 

When the button is clicked, a PDF must be generated. That PDF must contain details of assigned_to user and some custom text which client has suggested. 

Help me in understanding as to how can I achieve this.

1 ACCEPTED SOLUTION

Hi,


Use this share utility:

https://developer.servicenow.com/app.do#!/share/contents/3429377_pdf_generator?v=1.02&t=PRODUCT_DETAILS

 

Thanks,
Ashutosh

View solution in original post

13 REPLIES 13

Harsh Vardhan
Giga Patron

Community Alums
Not applicable

Hi Harshvardhan,

 

When I open the ServiceNow share which walter brame has shared, I am not able to find the documentation.

Can you please share the link to the documentation.

 

Regards,

Sindhuja.

Ashutosh Munot1
Kilo Patron
Kilo Patron

Hi,

We have PDF generator utils with us. We need to use this to generate PDF for this.

We have to store pdf body in one message html field and then call that in pdf generator.


Thanks,
Ashutosh

Community Alums
Not applicable

Hi Ashutosh,

 

Can you please provide with sample code of how can I achieve this.

Let us suppose that PDF must contain only "This incident is assigned to: {{Assigned_to name}}" for now.

 

Regards,

Sindhuja.