Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Export as PDF button on Custom Widget

Honey J
Tera Contributor

I have a requirement to add a button on custom widget, to export the current record as PDF. This is on custom service portal application. Please help.

1 REPLY 1

sachin_namjoshi
Kilo Patron
Kilo Patron

Code for list export on service portal with "Export to PDF" option is in 'Data Table' widget(ID:widget-data-table) widget. 

 

You can reuse code from this widget to provide option to export current record as PDF.

 

Regrds,

Sachin