Open printer friendly record version at Workspaces
A question arose in the community as to whether it would be possible to open a printer friendly version of the record view from within the Workspace.
Basically OOTB there is no option but you can create a simple UI Action to provide your agents with such a view.
In order not to reinvent the wheel, the built-in but somewhat hidden print version is used. To find that option, click on the wheel in the upper right corner of the classic interface and change to tab "General" click on printer icon:
After clicking on printer icon a window is opened and the current URL is loaded with an additional URL parameter "sysparm_media=print" at the end.
This parameter ensures that the page is rendered with minimal and printer friendly contents.
Back to Workspace. The detail view of a record is rendered there with the help of the view "Workspace". With this knowledge, a URL can now be assembled that loads the current record in the printer friendly version from the "Workspace" view.
The complete UI Action should be configured as follows:
| Name | Print Version |
|---|---|
| Table | Global |
| Active | true |
| Show update | true |
| Client | true |
| Workspace Form Menu | true |
| Workspace Client Script | 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'); } |
As a result you will find the new menu item at any record view:
https://www.servicenow.com/community/now-platform-articles/open-printer-friendly-record-version-at-workspaces/ta-p/2313143