Can I Call a catalog item from within another catalog item?

psenkow1
Giga Contributor

We have a catalog item to request access to jump servers.   As part of this, the requester needs to also tell them if they need access to a database(s) and what those are.

We have another catalog item that is to request access just to 2 specific databases.   These two databases require special work to be done (special approvals, etc.).

I would like to change the request for access to Jump Servers, such that IF they also request access to one of these 2 special databases, then it calls the catalog item for databases, and collects the information from that catalog item; adds it to Jump Server request, and puts all the information then into the request ticket.   I would rather not have to duplicate the variables on the database request, into the jump server request.

The reason for this is, if there is ever a change to the database request, we will only need to make the change in one place. Since the jump server request is calling the database request, the changes would be automatic in the jump server request.

Can anyone tell me if this is possible, and how to do it?

Your help is really appreciated.

1 ACCEPTED SOLUTION
16 REPLIES 16

I have a small suggestion .Please check if it works for you



Create a script   global script include with Cart logic and make accessible from "All application scopes" and call that script include in your scoped application



find_real_file.png


call new global.excuteItem().order() in your application


I instead used CartJS API and it worked