How to create a Export PDF button for Problem table

akin9
Tera Contributor

Hello exports

I have created a UI action in problem table for download PDF .

but My current UI Action.

function exportPDF() {

var sysparm_table = g_form.getTableName();
var sysparm_sys_id = g_form.getUniqueValue().toString();
var instanceName = 'https://My instance name/';
var url = instanceName + sysparm_table + '.do?PDF&sys_id=' + sysparm_sys_id;
g_navigation.openPopup(url);


}

 

I have below requirements I'm struggling here to achieve pls support.

1.file name when downloading shall be "RCA_Problem-.pdf"

2.Add Title in document "RCA - Root Cause Analysis"

3.Add fixed Agenda on first page (if possible).

 

Thank you

8 REPLIES 8

prashant8
Tera Expert

akin9
Tera Contributor

Hello Prashant,

Thank you for your Quick reply ,

Please provide me the code or steps for below requirement.  

 

1.file name when downloading shall be "RCA_Problem-.pdf"

2.Add Title in document "RCA - Root Cause Analysis"

3.Add fixed Agenda on first page (if possible).

 

Thank you

 

Musab Rasheed
Tera Sage
Tera Sage

Hello,

Check this out

https://www.servicenow.com/community/it-service-management-articles/export-to-pdf-in-agent-workspace...

Please hit like and mark my response as correct if that helps
Regards,
Musab

Hello Musab Raseed ,

Thank you for your Quick reply ,its useful to me. but My Requirment .

 

I have below requirements I'm struggling here to achieve pls support.

1.file name when downloading shall be "RCA_Problem-.pdf"

2.Add Title in document "RCA - Root Cause Analysis"

3.Add fixed Agenda on first page (if possible).

 

Thank you