cart Api is not working in Transform Map Script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2023 07:47 AM
Hi Everyone,
Anyone please help me. I am trying to create transform map on sc_req_item form which I am using cart api to create ritm in advance run script part but unfortunately not working.
same code , I am running through background script , It was working.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2023 07:53 AM
@ramancoder Can you try converting gs.print(rc.sys_id); to gs.info(rc.sys_id); and check if the script works. gs.print() doesn't work in scoped applications.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2023 08:04 AM
same issue. not working.....but above is working from background script as previously. @Sandeep Rajput Any suggestion or alternative please help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2023 08:07 AM
Not Populating Item,request, state.etc...
But same things is working if executing through background script,

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2023 10:21 AM
While exploring Cart Script include, I came across following notice.
Since Cart is deprecated, try and use CartJS API https://developer.servicenow.com/dev.do#!/reference/api/utah/server/sn_sc-namespace/c_CartJSScoped?n....