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
3 weeks ago
ServiceNow suggested using a Unique GuidID for the CartJS API "
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
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
2 weeks ago
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
2 weeks ago
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