Skip to content

Commit 4bd7838

Browse files
Create readme.md
Readme file for usage instructions
1 parent 4e6a78f commit 4bd7838

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

UI Actions/Copy Bulk SysIDs/readme.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Did you ever get any use case where you need to copy SysIDs in bulk from a list view?
2+
3+
The use case can be:
4+
There is some matrix that you need to validate in your script.
5+
You need to store the sysids in a property. One option is to export the CSV with Sys id field using ?CSV&sysparm_default_export_fields=all method,
6+
then convert in comma separated list.
7+
8+
![image](https://github.com/user-attachments/assets/90228462-cc67-4a99-b4e0-b1295c46bd67)
9+
10+
Created this small utility to fasten the process of copying bulk sysids
11+
12+
1. Navigate to System Definitions > UI Actions > Create New
13+
2. Give the Name of your choice e.g “Copy Bulk SysIDs”
14+
3. Select Table as “Global” so it is available on every list.
15+
4. Tick the Client and List choice field checkbox and call the function in Onclick field
16+
5. Write below code inside the function in Script field.
17+
**var sysIds = g_list.getChecked();
18+
copyToClipboard(sysIds);**
19+

0 commit comments

Comments
 (0)