-
Notifications
You must be signed in to change notification settings - Fork 907
Detect oldValue, newValue and Operation type in Glide List #1763
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
Detect oldValue, newValue and Operation type in Glide List #1763
Conversation
This onChange Client script comes handy when dealing with Glide List type fields where we have to detect whether the value was added or removed and return the sysIDs of items which was added/removed.
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.
Thank you for submitting the idea.
I know Glidelist store comma separated sys ids, but would it be possible for you to show the display values instead of sys ids?
This onChange Client script comes handy when dealing with Glide List type fields where we have to detect whether the value was added or removed and returns the display name of users who were added/removed along with name of operation performed.
This script include handles the sysIds(oldValue & newValue) of users and returns the display name
Hi @ravichandra1998g , Updated the script and added screenshots. Thanks |
ravichandra1998g
left a comment
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.
Hello @SrijanPatwa,
Thank you for making the changes. looks good now!
Can you please change the script include name from "scriptUtil" to more meaningful name?
This script include handles the sysIds(oldValue & newValue) of users and returns the display name
This onChange Client script comes handy when dealing with Glide List type fields where we have to detect whether the value was added or removed and returns the display name of users who were added/removed along with name of operation performed.
This script include handles the sysIds(oldValue & newValue) of users and returns the display name
Hi @ravichandra1998g , Updated. Please review again, thanks |
ravichandra1998g
left a comment
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.
Thank you, approved!
PR Description:
Pull Request Checklist
Overview
Code Quality
Repository Structure Compliance
Core ServiceNow APIs/Server-Side Components/Client-Side Components/Modern Development/Integration/Specialized Areas/Documentation
Restrictions