Subflow - Scoped (deprecated)
-
- UpdatedJan 30, 2025
- 2 minutes to read
- Yokohama
- API reference
The Subflow API provides methods to run published Workflow Studio subflows.
This API is deprecated and replaced by the FlowAPI - Scoped, Global.
The Subflow API can only be used in server scripts.
Use the sn_fd
namespace to access the Subflow API.
Before interacting with a subflow using the Subflow API, you must first create and publish the subflow in the Workflow Studio interface. Because the Subflow API only interacts with pre-built subflows, there is no constructor for the class.
Subflow - startAsync(String scopeName.subflowName, Map inputs)
Runs a published subflow asynchronously.
Asynchronous calls are non-blocking, allowing the client to execute other code in the script without having to wait for the subflow to complete.
Name | Type | Description |
---|---|---|
scopeName.subflowName | String | The application scope for the subflow and the internal name of the subflow to run. If scopeName is not included, the scope of the user currently logged in is used. Retrieve the internal name of the subflow using the Internal name column on the Workflow Studio landing page. |
inputs | Map | Name-value pairs that define subflow inputs. If a subflow includes mandatory inputs, they must be included. For inputs of Reference or Document ID field types, use a GlideRecord object as the value. |
Type | Description |
---|---|
Object | PlanResponse object containing the following properties:
An exception occurs when the subflow:
|