function printPDF(){ var uri = g_form.getTableName() + '.do?sys_id=' + g_form.getUniqueValue() + '&PDF'; g_navigation.open(uri); }
Code of UI action to export record as pdf ServiceNow?
Working Code Asked question November 27, 2023
function printPDF(){ var uri = g_form.getTableName() + '.do?sys_id=' + g_form.getUniqueValue() + '&PDF'; g_navigation.open(uri); }