CatalogItemVariableSet - Scoped
-
- UpdatedJan 30, 2025
- 3 minutes to read
- Yokohama
- API reference
The CatalogItemVariableSet API provides methods that enable you to create and modify service catalog item variable sets using scripts.
This API runs in the sn_sc
namespace.
CatalogItemVariableSet - create(Boolean standardUpdate)
Inserts the defined catalog item variable set.
Name | Type | Description |
---|---|---|
standardUpdate | Boolean | Flag indicating whether to enable the running of engines and workflow. Valid
values:
|
Type | Description |
---|---|
String | Sys_id of the inserted variable record. |
Example
CatalogItemVariableSet - deleteRecord(Boolean standardUpdate)
Deletes a variable set.
Name | Type | Description |
---|---|---|
standardUpdate | Boolean | Flag that indicates whether to enable the running of engines and
workflow. Valid values:
|
Type | Description |
---|---|
void |
Example
This example removes My Variable Set from all catalog items that use it, and then deletes My Variable Set.
CatalogItemVariableSet - read(Object columns, Boolean standardUpdate)
Returns a mapping of catalog item variable set attribute values.
Name | Type | Description |
---|---|---|
columns | Object | Specify the set of columns that you would like the values for. |
standardUpdate | Boolean | Flag that indicates whether to enable the running of engines and
workflow. Valid values:
|
Type | Description |
---|---|
Object | An object mapping column names to values. |
CatalogItemVariableSet - setAttributes(Object attributes)
Sets attributes for a variable set.
Name | Type | Description |
---|---|---|
attributes | Object | An object mapping column names to values. |
Type | Description |
---|---|
void |
Example
This example creates a variable set and then adds a variable to the new set.
Output:
CatalogItemVariableSet - update(Object columnValues, Boolean standardUpdate)
Updates a variable set.
Name | Type | Description |
---|---|---|
columnValues | Object | An object mapping column names to values. |
standardUpdate | Boolean | Flag that indicates whether to enable the running of engines and
workflow. Valid values:
|
Type | Description |
---|---|
void |
Example
This example updates the description and order for the Standard Employee Questions variable set.
On this page
- CatalogItemVariableSet - create(Boolean standardUpdate)
- CatalogItemVariableSet - deleteRecord(Boolean standardUpdate)
- CatalogItemVariableSet - read(Object columns, Boolean standardUpdate)
- CatalogItemVariableSet - setAttributes(Object attributes)
- CatalogItemVariableSet - update(Object columnValues, Boolean standardUpdate)