Requestor for not populating correctly using sn_sc.CartJS();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2025 10:06 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2025 11:06 PM
That does not seem to be the sysid of user, can you make sure you add a valid sysid and confirm?
Please check the below image and this link - https://developer.servicenow.com/dev.do#!/reference/api/xanadu/server/sn_sc-namespace/c_CartJSScoped...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2025 11:27 PM
Script shared by you should work provided you give correct user sysId
The user should be active in sys_user
Can you try that and share the update again?
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-05-2025 11:51 PM
I just post that sys_id for a example, In real time, I mapped the correct sys_id.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2025 12:04 AM
Is that user active and not locked out?
Can you share complete script?
If that doesn't work then you can update the requested_for field on RITM once cart is submitted via script.
You can get the JSON response, parse it and get RITM and update the requested_for field on RITM via GlideRecord
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