Create a service catalog item dynamically

addenkik
Kilo Explorer

Hi all,

I created a Catalog Item (under Maintain items) with some variables. So if i manually enter the values to this variables and click submit, it creates an request and an item under this request.

Can I create a record of the same item dynamically with a script or workflow? I am trying to do this so that my workflows assigned to this catalog item will kick off.

Thanks

Kalyan

3 REPLIES 3

Brad Tilton
ServiceNow Employee
ServiceNow Employee

Check out the Service Catalog Script API wiki article for ordering items from a script.

http://wiki.servicenow.com/index.php?title=Service_Catalog_Script_API


Thanks a lot Brad. It worked.


Sabrina10
Kilo Guru

I want to do something similar. If a user adds a specific item to their cart, when they checkout, I want two additional items to be created. The user doesn't need to see these items, so I don't think I want to use an order guide.

I tried using the examples in the Service Catalog Script API article, but this creates the items in a new request, when I actually want all three items in the same request.

Thoughts?