onAction(scriptContext)

Description

Defines a Workflow Action script trigger point.

For a script sample, see Workflow Action Script Sample.

Returns

void

Since

Version 2016 Release 1

Parameters
Note:

The scriptContext parameter is a JavaScript object.

Parameter

Type

Required / Optional

Description

Since

scriptContext.newRecord

record.Record

required

The new record.

record.Record.save() is not permitted.

2016.1

scriptContext.oldRecord

record.Record

required

The old record.

record.Record.save() is not permitted.

2016.1

scriptContext.form

serverWidget.Form

optional

The current form that the script uses to interact with the record. This parameter is available only in the beforeLoad context.

2016.2

scriptContext.type

string

optional

An event type, such as create, edit, view, or delete.

2016.2

scriptContext.workflowId

integer

optional

The internal ID of the workflow that calls the script.

2016.2

Related Topics

General Notices