Export to pdf option on email tab in CSM Agent workspace

Moumita
Tera Contributor

I want to create Export to PDF option in CSM Agent Workspace same as outlook save mail option.

I have created UI action with following workspace client script, but it didn't work:
function onClick(g_form) {

var sysparm_table = g_form.getTableName();
var sysparm_sys_id = g_form.getUniqueValue().toString();
var a=gs.getProperty("instance_name");
var url = a+sysparm_table + '.do?PDF&sys_id=' + sysparm_sys_id;
g_navigation.openPopup(url);
}

Also, I have tried option of creating Action Assignment on sys_email table to Export, 'implemented as' option as Client Action and UXF client Action. But it is not visible on email page in Agent Workspace.

Export to pdf option is needed in highlighted box in attached screenshot

Please suggest

2 REPLIES 2

Community Alums
Not applicable

Hi Moumita, 

You can try something like this :

function onClick(g_form) {
  var url = '/' + g_form.getTableName() + '.do?sys_id=' + 
	  g_form.getUniqueValue() + '&sysparm_view=Workspace&sysparm_media=print';
  top.window.open(url, '_blank'); 
  
  OR  

  g_navigation.openPopup(url); //This also works
   
}

Also, refer to this thread as well :https://community.servicenow.com/community?id=community_question&sys_id=9e8f3b64dbc26450fa192183ca96...

Mark my answer correct & Helpful, if Applicable.

Thanks,

Sandeep

Community Alums
Not applicable

Hi @Moumita ,