Skip to content

Commit 676a993

Browse files
Create README.md
Readme file for instructions and usage for Copying Bulk Sysids
1 parent 9e5a912 commit 676a993

File tree

1 file changed

+33
-0
lines changed
  • Client-Side Components/UI Actions/Copy Bulk SysIDs

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Copy SysIDs in Bulk — ServiceNow Utility
2+
3+
> Simplify copying checked sys_ids from a list view with a one-click UI Action.
4+
5+
---
6+
7+
## Purpose / Use Case
8+
9+
Often, you may need to extract sys_ids from records listed in a ServiceNow list view (for scripting, validations, data workflows, etc.). Instead of exporting CSVs or manually gathering IDs, this utility enables direct copying of the selected records’ sys_ids (comma-separated) from the list itself.
10+
11+
---
12+
13+
## How It Works
14+
15+
It adds a global UI Action (on lists) that, when clicked, collects the sys_ids of checked records and copies them to the clipboard using a small client-side script.
16+
17+
---
18+
19+
## Installation Steps
20+
21+
1. Navigate to **System Definition > UI Actions**.
22+
2. Create a **new UI Action** with these settings:
23+
- **Name**: e.g. `Copy Bulk SysIDs`
24+
- **Table**: `Global` (so it works on every list)
25+
- **Check** the **Client** and **List** checkboxes (so it appears in list context on client side)
26+
3. In the **Onclick / Client script** field, paste:
27+
28+
```javascript
29+
var sysIds = g_list.getChecked();
30+
copyToClipboard(sysIds);
31+
32+
## Result
33+
<img width="1829" height="901" alt="image" src="https://github.com/user-attachments/assets/bdbd7c11-9a1a-42a3-972e-6920228fe065" />

0 commit comments

Comments
 (0)