File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
UI Actions/Copy Bulk SysIDs Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change
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
+
You can’t perform that action at this time.
0 commit comments