Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

CatalogItemVariable- Scoped

The CatalogItemVariable API provides methods that enable you to create and modify service catalog item variables using scripts.

This API runs in the sn_sc namespace.

Parent Topic:Server API reference

CatalogItemVariable - create(Boolean standardUpdate)

Inserts the specified catalog item variable.

NameTypeDescription
standardUpdateBooleanFlag that indicates whether to enable the running of engines and workflow.Valid values: - true: Enable engines and workflow. - false: Do not enable engines and workflow.
TypeDescription
StringReturn the sys_id of the inserted variable record.

CatalogItemVariable - deleteRecord(Boolean standardUpdate)

Deletes the defined catalog item variable.

NameTypeDescription
standardUpdateBooleanFlag that indicates whether to enable the running of engines and workflow.Valid values: - true: Enable engines and workflow. - false: Do not enable engines and workflow.
TypeDescription
void 

CatalogItemVariable - read(Object columns, Boolean standardUpdate)

Returns a mapping of catalog item variable attribute values.

NameTypeDescription
columnsObjectSet of columns for which to return values.
standardUpdateBooleanFlag that indicates whether to enable the running of engines and workflow.Valid values: - true: Enable engines and workflow. - false: Do not enable engines and workflow.
TypeDescription
ObjectAn object mapping column names to values.

CatalogItemVariable - setAttributes(Object attributes)

Defines attribute values for this catalog item variable.

NameTypeDescription
attributesObjectAn object mapping column names to values.
TypeDescription
void 

CatalogItemVariable - update(Object columnValues, Boolean standardUpdate)

Updates current catalog item variable with set values.

NameTypeDescription
columnValuesObjectAn object mapping column names to values.
standardUpdateBooleanFlag that indicates whether to enable the running of engines and workflow.Valid values: - true: Enable engines and workflow. - false: Do not enable engines and workflow.
TypeDescription
void