CatItem - Scoped

CatItem API enables you to create and modify service catalog items using scripts.

CatItem - create(Boolean standardUpdate)

Insert the defined catalog item.

Table 1. Parameters
Name Type Description
standardUpdate Boolean Set to true to enable the running of engines and workflow.
Table 2. Returns
Type Description
void


      
    

CatItem - delete(Boolean standardUpdate)

Delete the defined catalog item.

Table 3. Parameters
Name Type Description
standardUpdate Boolean Set to true to enable the running of engines and workflow.
Table 4. Returns
Type Description
void


      
    

CatItem - read(Object columns, Boolean standardUpdate)

Get a mapping of catalog item attribute values.

Table 5. Parameters
Name Type Description
standardUpdate Boolean Set to true to enable the running of engines and workflow.
columns Object Specify the set of columns that you would like the values for.
Table 6. Returns
Type Description
Object An object mapping column names to values.


      
    

CatItem - setAttributes(Object attributes)

Define attribute values for this catalog item.

Table 7. Parameters
Name Type Description
attributes Object An object mapping column names to values.
Table 8. Returns
Type Description
void


      
    

CatItem - setCatalogs(String catalogs)

Define the catalogs that this catalog item is associated with.

Table 9. Parameters
Name Type Description
catalogs String Specify comma-separated list of catalogs that you would like the item to be associated with.
Table 10. Returns
Type Description
void


      
    

CatItem - setCategories(String categories)

Define the categories that this catalog item is associated with.

Table 11. Parameters
Name Type Description
categories String Specify comma-separated list of categories that you would like the item to be associated with.
Table 12. Returns
Type Description
void


      
    

CatItem - setImage(String dbImageSysId, String type)

Set the image of a catalog item to a database image record.

Table 13. Parameters
Name Type Description
dbImageSysId String The sys_id of an attachment referencing the db_image.
type String Type can be picture or an icon.
Table 14. Returns
Type Description
void


      
    

CatItem - setTableName(String tableName)

Define the table name for this catalog item.

Table 15. Parameters
Name Type Description
tableName String Specify the name of the table that extends sc_cat_item.
Table 16. Returns
Type Description
void


      
    

CatItem - update(Object columnValues, Boolean standardUpdate)

Use to update current catalog item with set values.

Table 17. Parameters
Name Type Description
columnValues Object An object mapping column names to values.
standardUpdate Boolean Set to true to enable the running of engines and workflow.
Table 18. Returns
Type Description
void