Creating RITM form script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2023 09:48 AM
Hi,
We have a requirement to create multiple RITMs from script.
With the script I am able to create the RITMs but somehow the variables are not visible on those RITMs created from script.
Looks like the link between RITMs and variables is missing.
Please look script below. How this can be solved?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2023 09:51 AM
Hi @Kalyani35
you cannot use a simple GlideRecord as in the background many tables have to be filled.
Instead use the CartJS API. The following documentation has lots of examples embedded: https://developer.servicenow.com/dev.do#!/reference/api/tokyo/server/sn_sc-namespace/c_CartJSScoped
Maik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2023 10:02 AM
Hi Maik,
Thanks for reply.
We actually want to create multiple RITMs based on the excel file attached on the request. Can we do it using cart api? Can you suggest the approach please.
Thanks