How to add variables to catalog item through script

Sherice1
Tera Contributor

Hello All,

we have requirement where upon new application is added to custom table business rule should trigger and then create catalog item for that application along with variables through script, I am able to create catalog item but how should i add variables to that catalog item.

Any help is appreciated am struggling with it .

-Sherice.

2 REPLIES 2

Community Alums
Not applicable

You can use the Cart API for creating the request. 

You can find a an example below which creates request and RITM from email. You can pass the field values from your current object  to variables in the way how it is getting passed from email object.

https://community.servicenow.com/community?id=community_question&sys_id=f37bc48edbabfb440be6a345ca961920

 

 

sudeep,

 

Am creating cat item with script not request or ritm..

 

-S