- 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 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