Auto download Inc Number as pdf when click on button
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2024 05:57 AM
hi i have created a button called PDF
when i click on the button i need to download only INC number as pdf
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2024 10:33 AM - edited 04-23-2024 10:37 AM
Hello @Rajkumar Bommal ,
Try with the below code, it should works. I tried in my PDI.
function getIncidentPDF() {
alert("Hi:" + g_form.getUniqueValue());
//gsftSubmit(null, g_form.getFormElement(), 'download_pdf');
top.window.open('https://dev*****.service-now.com/incident.do?PDF&sys_id=' + g_form.getUniqueValue(), '_blank');// replace ***** with your instance
}
Please Mark My Answer as Helpful and Accept as Solution, if you find this article helpful or resolves your issue.