Defines a workflow and its actions.
import { defineWorkflow } from '@rippling/rippling-sdk';
Properties
| Property | Required | Type | Description |
|---|---|---|---|
apiName | Required | `${string}__c` | — |
title | Required | string | Workflow title shown to admins. |
trigger | Required | WorkflowTrigger | Trigger definition in the workflows v2 proto JSON shape. |
categories | Optional | WorkflowCategory[] | — |
customVariables | Optional | Record<string, WorkflowCustomVariable> | — |
description | Optional | string | Short workflow description shown to admins. |
function | Optional | string | FunctionReference | The function this workflow runs. Pass a live FunctionReference reference, or a raw api_name string for functions defined outside this manifest. |
functionApiNamesByOldId | Optional | Record<string, string> | — |
functionsInferredGraph | Optional | WorkflowGraph | — |
graph | Optional | WorkflowGraph | — |
recipeId | Optional | string | — |
triggerStatus | Optional | WorkflowTriggerStatus | — |
versionStatus | Optional | WorkflowVersionStatus | — |
TypeScript signature
defineWorkflow(props: DefineWorkflowProps): Workflow;
Returns
Workflow
Availability
| Capability | Support |
|---|---|
| Pull into a project | Supported |
| Runtime operations | Not available for this helper |