-
Notifications
You must be signed in to change notification settings - Fork 683
Added "Copy SysIds in Bulk" utility #1578
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
03fea9d
Create findBrokenLinks.js
dvn-lazywinner 3e6799c
Merge branch 'ServiceNowDevProgram:main' into SNTips
dvn-lazywinner 4e6a78f
Create CopyBulkIDs.js
dvn-lazywinner 4bd7838
Create readme.md
dvn-lazywinner ea4e0ba
Create CopyVariableSet.js
dvn-lazywinner 946020b
Delete UI Actions/Copy Variable Set directory
dvn-lazywinner a79b508
Delete findBrokenLinks.js
dvn-lazywinner File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* | ||
//This action will be able to copy the sysids of multiselected records. | ||
|
||
Table - Global | ||
List Choice - True | ||
Client - True | ||
onClick - copySysIDs() | ||
|
||
Result - All the sysids will be copied as comma-separated strings which you can further copy into a system property for validations | ||
|
||
*/ | ||
|
||
function copySysIDs(){ | ||
var sysIds = g_list.getChecked(); | ||
copyToClipboard(sysIds); | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Did you ever get any use case where you need to copy SysIDs in bulk from a list view? | ||
|
||
The use case can be: | ||
There is some matrix that you need to validate in your script. | ||
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, | ||
then convert in comma separated list. | ||
|
||
 | ||
|
||
Created this small utility to fasten the process of copying bulk sysids | ||
|
||
1. Navigate to System Definitions > UI Actions > Create New | ||
2. Give the Name of your choice e.g “Copy Bulk SysIDs” | ||
3. Select Table as “Global” so it is available on every list. | ||
4. Tick the Client and List choice field checkbox and call the function in Onclick field | ||
5. Write below code inside the function in Script field. | ||
**var sysIds = g_list.getChecked(); | ||
copyToClipboard(sysIds);** | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This does not seem to be your intention. Make sure you have synced your main branch and create a new branch with just the UI Actions details, without deleting files that exist