I have 7 records in my list collector, I want all to be selected by default in the list collector
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2024 03:27 AM
I have 7 records in my list collector, I want all to be selected by default in the list collector..
@Maik Skoddow
@Mark Roethof
@Gaurav Shirsat
@ghaing
@tltoulson
@Ankur Bawiskar
@Chuck Tomasi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2024 03:31 AM
then in default value give all those 7 sysIds
sysId1,sysId2,sysId3,sysId4,sysId5,sysId6,sysId7
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2024 03:42 AM - edited 01-10-2024 03:47 AM
Hi,
If its the same sysid for all the 7 records over time, just put it in as etc.
record1sysid,record2sysid,record3sysid
If the 7 records might change over time and is different. (Not tested on catalog items/Record producers)
javascript: getValue(); function getValue(){var gr = new GlideRecord('your_table_name'); gr.query(); if(gr.next()){return gr.sys_id;}}
Another way would be making a onLoad client script and use Ajax
Make an client callable script include function that returns the 7 sysid comma seperated.