workflowactionscript
This topic provides the available fields for developing workflowactionscript SDF custom objects for workflow action scripts. For information about creating workflow action scripts, see SuiteScript 2.x Workflow Action Script Type.
Feature Dependencies
-
SERVERSIDESCRIPTING
Attributes
Name |
Type |
Required / Optional |
Description |
---|---|---|---|
scriptid |
string |
Required |
This attribute value can be up to 40 characters long. The default value is ‘customscript’. |
Fields
Name |
Type |
Required / Optional |
Description |
---|---|---|---|
name |
single-select list |
Required |
This field value can be up to 40 characters long. This field accepts references to the string custom type. |
scriptfile |
filereference |
Required |
This field must reference a .js file. |
returnrecordtype |
single-select list |
Required (conditionally) |
This field is mandatory when the returntype value is equal to SELECT. This field accepts references to the following custom types: For information about other possible values, see script_returnrecordtype. |
defaultfunction |
string |
Optional |
|
description |
single-select list |
Optional |
This field value can be up to 999 characters long. This field accepts references to the string custom type. |
isinactive |
boolean |
Optional |
The default value is F. |
notifyadmins |
boolean |
Optional |
The default value is F. |
notifyemails |
string |
Optional |
This field value can be up to 999 characters long. |
notifygroup |
string |
Optional |
Note:
Account-specific values are not supported by SDF. |
notifyowner |
boolean |
Optional |
The default value is T. |
notifyuser |
boolean |
Optional |
The default value is F. |
returntype |
single-select list |
Optional |
For information about possible values, see generic_customfield_fieldtype. |
Structured Fields
Structured fields are elements that usually contain subfields or groups of fields. They are similar to regular fields but have their own embedded structure. The following structured fields are supported: