Using SuiteScript to Initiate a Workflow

You can use a SuiteScript 2.x workflow action script to programmatically initiate a workflow on demand. Use the numeric workflow internal ID or custom script ID, the script ID of the base or subrecord types, and the internal ID of the record to identify the workflow and the record on which the workflow initiates. The workflow custom script ID is specified in the ID field of the workflow definition page. For more information about workflow action scripts, see Creating and Using Workflow Action Scripts.

The following screenshot shows the script ID location:

A portion of the workflow definition screen with the script ID highlighted.

Related Topics

Workflow Initiation
Initiating a Workflow on an Event
Initiating a Workflow on a Schedule

General Notices