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
The scriptContext
parameter is a JavaScript object.
Parameter |
Type |
Required / Optional |
Description |
Since |
---|---|---|---|---|
|
record.Record |
required |
The new record. record.Record.save() is not permitted. |
2016.1 |
|
record.Record |
required |
The old record. record.Record.save() is not permitted. |
2016.1 |
|
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 |
|
string |
optional |
An event type, such as create, edit, view, or delete. |
2016.2 |
|
integer |
optional |
The internal ID of the workflow that calls the script. |
2016.2 |