Unique GuidID for the CartJS API var cart = new sn_sc.CartJS(gs.generateGUID()); is not working.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2025 10:43 AM
ServiceNow suggested using a Unique GuidID for the CartJS API "
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2025 02:00 AM
Hi
Try to Replace the last line var cartDetails = cart.orderNow(request); with
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2025 04:41 AM
Does this exact script work, albeit with a duplicate RITM issue, as-is with the exception of the first line, and with the second being:
var cart = new sn_sc.CartJS();
Do the system logs at the time of running this code indicate anything useful? As shown, usersysID and manager are undefined...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2025 09:10 PM
I don't think duplicate RITM issue is because of your script.
Since ServiceNow suggested this change didn't they test it out?
what debugging did you do from your side?
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader