Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-28-2025 05:52 AM
1 ACCEPTED SOLUTION
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-28-2025 06:18 AM
try this
var arr = new global.ArrayUtil();
var currArr = current.watch_list.toString().split(',');
var prevArr = previous.watch_list.toString().split(',');
var gm = arr.diff(currArr, prevArr);
gs.info("Test" + gm);
If my response helped please mark it correct and close the thread so that it benefits future readers.
Regards,
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-28-2025 06:05 AM
new global.ArrayUtil().diff(a1,a2)
If you found this helpful, please hit the thumbs-up button and mark as correct. That helps others find their solutions.