Scripts to insert/update Service Catalog Item and related data into table

kotasaito
Giga Contributor

Hi All,

Has anyone tried inserting new Service Catalog Item and related data such as Service Catalog Variables by using table API for the tables(e.g. sc_cat_item) and updating them?   Does any one have scripts to do that? If my understanding is correct, multiple tables are related to Service Catalog Item and need to insert/update them with consistency.

I know I can define brand new Service Catalog Item/Variables via Web UI as in following pages, but I would like to do via API.   Any language (e.g. Python, Ruby, JavaScript..) is ok.

Defining Catalog Items - ServiceNow Wiki

Using Service Catalog Variables - ServiceNow Wiki

1 ACCEPTED SOLUTION

mamann
Mega Guru

You can do this using the Scripted REST API, assuming you're running Geneva+



I don't have any scripts to do that, but as long as you build it in a logical order, just like you would in the UI, this should work.


View solution in original post

1 REPLY 1

mamann
Mega Guru

You can do this using the Scripted REST API, assuming you're running Geneva+



I don't have any scripts to do that, but as long as you build it in a logical order, just like you would in the UI, this should work.