Attributes

1. Get Fields For Item

getFieldsForItem (String itemNumber)

Parameters

  • itemNumber A unique Item Number

Description

This function is used to return a list of all Configuration Item fields for a particular Item Number.
The function returns two HashMaps, the first containing a list of CI field Ids, and the second containing the field values include the field name, whether the field is required, the data type, the field’s default value (if specified), and the field options if any are available.

2. Get Fields For Item Type

getFieldsForItemType (String itemTypeId)

Parameters

  • itemTypeId A unique Item Type ID

Description

This ‘getFieldsForItemType’ Â function is used to return a list of all Configuration Item fields for a particular Item Type. Enter an Item Type ID.
The function returns two HashMaps, the first containing a list of CI field Ids, and the second containing the field values include the field name, whether the field is required, the data type, the field’s default value (if specified), and the field options if any are available.

3. Get Fields For Related Item

getFieldsForRelatedItem (String itemNumber)

Parameters

  • itemNumber A unique Item Number

Description

This function is used to return information on all relationships for the particular Item Number.
It returns a HashMap of HashMaps, the outer keyed on the Item Numbers – the HashMap for each Item contains data such as the related Item Number, Criticality, Type and how it’s related to the Item with the given itemNumber.

4. Create Manufacturer

createManufacturer (String name) (since 5.5)

Parameters

  • name The name of the Manufacturer to create.

Description

This function creates a Manufacturer with the given name.