1.6

Table Of Contents
The following script sets the background color of a specific table cell in an email to red if the
value of the field TOTAL has a negative value in the current record.
if(record.fields.TOTAL<0) {
query("#total").attr("bgcolor","red");
}
automation
This object (of the type: Automation) encapsulates the properties of the PlanetPress Workflow
process that triggered the current operation.
Note
This object is only available in a Web context.
Note
The automation object available in DataMapper scripts is not of the same type. It has different
properties.
Properties
The following table lists the properties of the Automation object.
Property Description
jobInfos Returns an object containing JobInfo 1 to 9 values from PlanetPress Workflow.
properties Returns an object containing additional information (file name, process name
and task ID) from PlanetPress Workflow.
Accessing automation properties
To access JobInfo 1 to 9 (defined in Workflow):
automation.jobInfos.JobInfo1;
Page 753