- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-29-2025 06:05 AM
I have two fileds in the record producer
1.HR representative------>reference value
2.Watch list--------->list collector. both of them are variable set values hence mapping cannot be done directly and hence I have to use script.
In the backend where the case gets created whenever the form is raised there we have the watchlist field.
Now both HR rep and watchlist values from the record producer needs to be mapped to watchlist field in the case which is in the backend.
Tried the below script doesn't seems to be working only the watchlist mapping is heppening not the hr rep
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-29-2025 06:36 AM
Try this:
current.watch_list=producer.watch_list.toString() + "," + producer.hr_representative.toString();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-29-2025 07:22 AM
try this
current.watch_list = producer.watch_list.toString() + ',' + producer.hr_representative.toString();
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-29-2025 06:36 AM
Try this:
current.watch_list=producer.watch_list.toString() + "," + producer.hr_representative.toString();

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-29-2025 06:54 AM
@pk2184046 Please see if this works.
var watchlist=producer.watch_list.split(',');
var hr_rep = producer.hr_representative;
var user=hr_rep.concat(watchlist);
current.watch_list=user.toString();

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-29-2025 11:42 PM
@pk2184046 Did you check this solution?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-30-2025 05:39 AM
Hi Sandeep Rajput
Thank you for your response I have tried it is getting the values in a single sys id. Below is the screenshot