RecordToHTML - setValue(String fieldName, String value)

Sets the specified field to the specified value.

Table 1. Parameters
Name Type Description
fieldName String Name of the field to change.
value String Value to set the field to.
Table 2. Returns
Type Description
void

var r2html = new RecordToHTML("incident","e8e875b0c0a80164009dc852b4d677d5", "incident: ${number}-${short_description} (${user})", true);
r2html.setValue("user",gs.getUserName());
gs.print(r2html.toString())

Output: incident: INC00005-CPU load high for over 10 minutes (john.roberts)