RecordToHTML - RecordToHTML(String table, String sys_id, String pattern, Boolean link)

Creates an instance of RecordToHTML class.

Table 1. Parameters
Name Type Description
table String The record's table name
sys_id String The sys_id of the record
pattern String The pattern of the string to generate. The pattern may include ${} escapes for fields whose values should be included. For example, the pattern "sys_id: ${sys_id}" would substitute the actual sys_id for the escape.
link Boolean

var r2html = new RecordToHTML("incident","e8e875b0c0a80164009dc852b4d677d5", 
        "incident: ${number}-${short_description}", true);

Output: incident: INC00005-CPU load high for over 10 minutes