Skip to main content
For accessing and changing a ticket category.

Constructors

Category()

Initializes a new instance of the Category class.

Methods

getValue(String)

Retrieves the value of the given field in the category.
Returns: CRMScript.Global.String - The value of the specified field.
Available fields: id: The ID of the category; parent: The ID of the parent category; name: The name of the category; fullname: The full name of the category (such as “Support/Product A/bugs”); externalName: The external name of the category; categoryMaster: The ID of the category master; children: A comma-separated list of children IDs; notificationEmail: The value of the email Notification field
Example:

load(Integer)

Load object with values from category with given ID.
Returns: CRMScript.Global.Bool - True if the category exists; otherwise, false. Example:

save()

Saves the category and returns its ID.
Returns: CRMScript.Global.Integer - The ID of the saved category.

setValue(String,String)

Sets the value of the given field for the category.
Returns: CRMScript.Global.Void
Available fields: parent: The ID of the parent category; name: The name of the category; externalName: The external name of the category; categoryMaster: The ID of the category master; children: A comma-separated list of children IDs; notificationEmail: The value of the email Notification field
Example: