Guides
Start a workflow
Use code to start a workflow and submit a form.
Overview
Starting a workflow involves three steps.
- Initialize the workflow
- Get the draft document id
- Submit the document with data to the workflow
To simplify things, the example below uses a very simple form with only one field. A typical form will have much more data involved, but the process will still be these three steps, just with more data in the submit document step.
Step 1: Initialize the workflow
Call the initializeWorkflow mutation to start the workflow and get the actionId for the workflow you started.