Events and Payloads
The Tailor Platform offers a wide range of events that allow you to trigger specific actions within your applications. These events play a crucial role in building dynamic workflows and enable you to automate processes based on real-time data changes. Refer to the Event based trigger section for details on using and configuring events.
Below is a list of supported events and their payloads.
Tailor DB
1. tailordb.type_record.created
| Field Name | Description |
|---|
workspaceId | String: The workspace ID where the event occurred. |
namespaceName | String: Name of the application. |
typeName | String: Name of the type. |
newRecord | Object: The new record added to Tailor DB. |
2. tailordb.type_record.updated
| Field Name | Description |
|---|
workspaceId | String: The workspace ID where the event occurred. |
namespaceName | String: Name of the application. |
typeName | String: Name of the type. |
oldRecord | Object: The old record in Tailor DB. |
newRecord | Object: The updated record in Tailor DB. |
3. tailordb.type_record.deleted
| Field Name | Description |
|---|
workspaceId | String: The workspace ID where the event occurred. |
namespaceName | String: Name of the application. |
typeName | String: Name of the type. |
oldRecord | Object: The deleted record. |
4. tailordb.type_record_file.uploaded
| Field Name | Description |
|---|
workspaceId | String: The workspace ID where the event occurred. |
namespaceName | String: Name of the application. |
typeName | String: Name of the type. |
metadata.content_type | String: MIME type of the uploaded file. |
metadata.field_name | String: Name of the file field that received the upload. |
metadata.last_uploaded_at | DateTime: Timestamp when the file was uploaded. |
metadata.parent_id | String: ID of the record that owns the file. |
metadata.sha256sum | String: SHA256 checksum of the uploaded file. |
metadata.size | Integer: Size of the uploaded file in bytes. |
StateFlow
1. stateflow.state_flow.created
| Field Name | Description |
|---|
workspaceId | String: The workspace ID where the event occurred. |
namespaceName | String: Name of the application. |
stateFlowId | String: StateFlow ID. |
stateFlowName | String: Name of the StateFlow. |
2. stateflow.state_flow.deleted
| Field Name | Description |
|---|
workspaceId | String: The workspace ID where the event occurred. |
namespaceName | String: Name of the application. |
stateFlowId | String: StateFlow ID. |
stateFlowName | String: Name of the StateFlow. |
3. stateflow.state.created
| Field Name | Description |
|---|
workspaceId | String: The workspace ID where the event occurred. |
namespaceName | String: Name of the application. |
stateId | String: State ID. |
stateFlowId | String: StateFlow ID. |
stateName | String: State Name. |
resourceId | String: Resource ID, e.g., userId or roleId. |
4. stateflow.state.transitioned
| Field Name | Description |
|---|
workspaceId | String: The workspace ID where the event occurred. |
namespaceName | String: Name of the application. |
stateId | String: State ID. |
stateFlowId | String: StateFlow ID. |
resourceId | String: Resource ID, e.g., userId or roleId. |
approverId | String: Approver ID, e.g., userId or roleId. |
action | String: Name of the action. |
fromStateName | String: Name of the prev State. |
toStateName | String: Name of the transitioned State. |
Pipeline
1. pipeline.resolver.executed
| Field Name | Description |
|---|
workspaceId | String: The workspace ID where the event occurred. |
namespaceName | String: Name of the application. |
resolverName | String: Name of the pipeline resolver. |
succeeded.result | Object: The result object contains pipelines and resolver data. |
failed.error | String: The error message provides details about the cause of the error. |