- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2020 05:40 AM
Hi,
Is is possible to print the variables which are present in the Task form in a specific layout
How can we achieve this if possible
Thank you
Solved! Go to Solution.
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2020 07:53 AM
please refer below link for help
Label Printing:- End user details from a Request or Incident
If you want the print in custom format then you will have to use UI page
you can also use Printer friendly option
this can be accomplished by navigating to the record in question. Once there, click the gear icon in the upper-right hand corner of the screen which presents with a menu like so:
And click "Printer friendly version" as indicated by my cursor.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2020 06:02 AM
If you want to print from background script use:
var grTask = new GlideRecord('sys_dictionary');
grTask.addEncodedQuery('name=task');
grTask.orderBy('column_label');
grTask.query();
while (grTask.next()) {
gs.print(grTask.column_label);
}
Result will be:
Or revers the order using:
var grTask = new GlideRecord('sys_dictionary');
grTask.addEncodedQuery('name=task');
grTask.orderByDesc('column_label');
grTask.query();
while (grTask.next()) {
gs.print(grTask.column_label);
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2020 05:53 AM
- What is the order it should be in?
- What do you mean by print?
- Only on the Task level or other task types?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2020 06:06 AM
Print means I would like to print the form on a paper all fields which are there on the form should be printed on to the paper
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2020 07:53 AM
please refer below link for help
Label Printing:- End user details from a Request or Incident
If you want the print in custom format then you will have to use UI page
you can also use Printer friendly option
this can be accomplished by navigating to the record in question. Once there, click the gear icon in the upper-right hand corner of the screen which presents with a menu like so:
And click "Printer friendly version" as indicated by my cursor.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2020 12:48 AM
Hope you are doing good.
Let me know if I have answered your question.
If so, please mark appropriate answer as correct & helpful to close the thread.
If not, please let us know if you need some more assistance.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader