Skip to content

Depricated Script Include "Cart" to create Catalog Item through script #2056

@SumithThota

Description

@SumithThota

Problem:

  • The current script Source references the deprecated Cart Script Include (new Cart()) for creating new RITMs.

  • This method is no longer supported in modern ServiceNow versions and may cause unexpected behavior or fail to execute properly, as the script is hidden or inaccessible.

To see more, open the script include "Cart"( or by rightclick on Cart>open Definition) in your instance of ServiceNow. Once you open it, you will able to see below Script Include

Image

You may not be able to view the script because ServiceNow really does not want you to use it.

Proposal:

  1. Replace the deprecated Cart Script Include with the modern and supported API for creating RITMs.
  2. Using sn_sc.CartJS() APIs to programmatically create catalog requests.
  3. Ensures the script mimics all the actions of a manual catalog submission
  4. Improve reliability, prevent unexpected errors, and align with the servicenow documentation

Assign to Me

I would like to work on this issue.
Kindly assign this issue to me so that I can proceed with implementing script that can able to Submit catalog Item using sn_sc.CartJS.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions