How to make Catalog Client Script Applies on all items?

guy
Kilo Contributor

Hi,

I wrote a catalog client script and i need it to run on all items, without exception. The problem is in the field "applies to" witch need to be choose between the two cases: an item or variable set. I tried to create a client script but then I had to choose a table. I do not know what is the table (the form is the service catalog), so the script does not work because the table I entered is incorrect.

Does anyone know the table's name of the service catalog?

Or a solution to select all items

Thanks,

Guy.

5 REPLIES 5

manikorada
ServiceNow Employee
ServiceNow Employee

Guy,



Create a variable set and add the client script to this variable set. Now add all the Items to this variable set which should apply the client script on the variable set to all items.


guy
Kilo Contributor

The problem is that there is several items with a few sets rather than one set. That is, each item has different variables.


Ashutosh Munot1
Kilo Patron
Kilo Patron

can you use sc_req_item table...so this will get apply to item which are requested by you or end user.



this means, which ever item you request this scripts gets applied to it. try this and lemme know the outcome


Rushit Patel2
Tera Guru

Hi guy,



can you tell what is your requirement? why do u want to run for all items.



thanks,


Rushit Patel