Skip to main content

Workflows

EntityWorkflow

Workflows define automated processes and state machines in TribeCRM. They consist of workflow states and transitions that govern how entities move through a process.

Use the Workflow endpoint to query workflow definitions.

Endpoints

List Workflows

GET/v1/odata/Workflow

Single Workflow

GET/v1/odata/Workflow({id})

Create Workflow

POST/v1/odata/Workflow

Update Workflow

PUT/v1/odata/Workflow({id})

Delete Workflow

DELETE/v1/odata/Workflow({id})

Fields

Workflow Fields

FieldTypeDescription
NameStringWorkflow name
CodeStringWorkflow code
IsEnabledBooleanWhether the workflow is active

Relationships

RelationshipTarget EntityCardinalityDescription
WorkflowStatesWorkflowState1:NStates in this workflow
WorkflowTransitionsWorkflowTransition1:NTransitions between states

Expanding Relationships

GET/v1/odata/Workflow({id})?$expand=WorkflowStates
GET/v1/odata/Workflow({id})/WorkflowStates

Filtering Examples

GET/v1/odata/Workflow?$filter=Name eq '{Name}'&$top={top}
GET/v1/odata/Workflow?$filter=IsEnabled eq {IsEnabled}&$top={top}
GET/v1/odata/Workflow?$filter=Code eq '{Code}'&$top={top}
GET/v1/odata/Workflow?$filter=contains(Name, '{Name}')&$top={top}