PDF generation from record
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
Hi community, good day,
I am working on a requirement.
On the incident table, I need a button so that when I click that button, the record gets downloaded in PDF format. But this is not happening.
I am using this approach...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
Use PDFGenerationAPI to generate this, below are reference links
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0689606
If this helped to answer your query, please mark it helpful & accept the solution.
Thanks,
Bhuvan

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
Hi @rah dev ,
There is an default option to generate PDF without script. You can use below UI Action script
function onClickGeneratePDF({
window.open("/incident.do?PDF&sys_id=" + g_form.getUniqueValue()+ "&sysparm_view=default", "_blank");
}
Note: If you want specific fields to be listed then either use existing view or create a new view with the fields you want in the PDF. Replace default in the above script with the name of the view created
Palani
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
57m ago
can you please check this script, I tried but found this error msg:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
you can use the easy approach shared by @palanikumar
You need not use script include then.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader