Dynamically set List Collector variable from Script Include
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2025 02:18 AM - edited 07-28-2025 02:18 AM
Hi
I have similar scenario where I am calling a REST Message from my scripts include and getting proper response till that. But I am unable to populate those values in the drop down of the WebUser variable.
My Scripts Include:
Response From REST:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2025 12:22 AM
A List Collector is a type of reference variable that stores comma-separated SysIDs. Based on the logic in your scripts, you're retrieving displayName and nickname attributes. However, for this to work correctly, the corresponding name or nickname values must exist in your User table.
These values are essential because they help resolve the actual SysIDs of the user records. Only once you've obtained the correct SysIDs can you apply filters and display the desired records in the List Collector variable.
Please mark my response as Accepted and Helpful for future references.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2025 12:29 AM
list collector is variable which refers to some table.
Please discuss with your customer about the correct requirement.
If list collector is referring to sys_user then you should set sysId of those users in onChange client script.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader