- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-06-2022 01:54 AM
Hi,
I have a custom table(u_userslist) in which two fields are of List type(Primary users and Backup users).
I want to auto-populate all the selected Primary users and Backup users in the List collector variable(all_users) on the catalog form.
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-06-2022 03:30 AM
Hi,
this variable "all_users" refers to sys_user
So this variable should auto-populate with Primary and Backup users.
you can use onChange on select box reference variable + GlideAjax and fetch the primary + backup users and set it on list collector variable
refer my blog for the same; If my blog helps please mark it helpful and also bookmark it
Dynamically set list collector on change of variable
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-06-2022 03:27 AM
Hi,
So you can select record from that table using reference/list variable
populate where? in some other variable on catalog item?
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-06-2022 03:31 AM
Yes.
In one variable we are referencing to the u_userlist table [u_name]. Once name is selected based on that in the All user[List collector] variable Primary and backup user list will autopopulate as a List collector.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-06-2022 03:44 AM
I have written blog for this and it has the solution.
You need to enhance it further.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-06-2022 03:30 AM
Hi,
this variable "all_users" refers to sys_user
So this variable should auto-populate with Primary and Backup users.
you can use onChange on select box reference variable + GlideAjax and fetch the primary + backup users and set it on list collector variable
refer my blog for the same; If my blog helps please mark it helpful and also bookmark it
Dynamically set list collector on change of variable
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-13-2022 08:14 PM
Glad to know that my comment worked.
Please mark response helpful as well and also mark blog as helpful if it helped.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader