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.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 ofsave() that also adds a message to the ticket log.
Integer save(Bool setReadStatus, Bool doNotCheckEscalating)
A variant ofsave() with 2 settings for controlling processing:
setReadStatus: if true, update the read statusdoNotCheckEscalating: if true, do NOT let the update trigger a possible escalation
Integer save(String log, Bool setReadStatus, Bool doNotCheckEscalating)
A variant ofsave() that combines the processing settings and a log message.