Jim Coyne
Kilo Patron
Part of the Developer Toolbox Series.

 

ServiceNow gives us a "Copy sys_id" Context Menu to easily grab the sys_id from a record in a List view.  Would be nice to have one that does it for multiple records.  Well, that's what this tool does. It's similar to the "Grab Grouped Information" Tool.

 

It's a Context Menu as well, but it opens up a custom UI Page that displays the sys_ids in a text box:

 

JimCoyne_0-1683088521300.png

 

JimCoyne_4-1683096624806.png

 

Select the text you want and copy it or click on the "Copy" button.  If you do not have any records selected, it will grab the one from the record you right-clicked over to open the menu.

 

There are even a couple formatting options:

  • add a custom separator character/string at the end of each line
  • format as a single line

 

JimCoyne_9-1683089904561.png

 

 

I've attached XML files for the Context Menu, UI Page and the UI Message records so you can just import them into your instance.  As always, try it out in your company's development instance first, or better yet, your own personal development instance.

4 Comments