Skip to main content

Void setValue(String colName, String value)

Sets a named field to the given value. Look up names in the reference section down below, or check out the class reference.
Both parameters are strings! Remember to use quotes even for IDs.You must call save() after setting all applicable values to actually create or update the ticket.
This snippet creates a new ticket and prints its ID.
To check the available options for category, status, and priority: Go to the SuerOffice Admin client and select Requests from the main menu. You can now inspect the options in each tab.

Frequently used ticket values

For a complete list of fields, see the database reference.

Integer save()

Saves a new or updated ticket and returns its ID.

Integer save(String log)

A variant of save() that also adds a message to the ticket log.

Integer save(Bool setReadStatus, Bool doNotCheckEscalating)

A variant of save() with 2 settings for controlling processing:
  • setReadStatus: if true, update the read status
  • doNotCheckEscalating: if true, do NOT let the update trigger a possible escalation

Integer save(String log, Bool setReadStatus, Bool doNotCheckEscalating)

A variant of save() that combines the processing settings and a log message.