Query
query WorkflowExecutionsByEntity($filters: WorkflowExecutionByEntityFilter!) {
workflowExecutionsByEntity(filters: $filters) {
edges {
cursor
node {
id
workflowId
workflow {
__typename
}
triggeredBy
executionStatus
errorMessage
}
}
pageInfo {
hasPreviousPage
hasNextPage
startCursor
endCursor
}
}
}Variables
{
"filters": {
"entityType": "THREAD",
"entityId": "id"
}
}Response
{
"data": {
"workflowExecutionsByEntity": {
"edges": [
{
"cursor": "string",
"node": {
"id": "id",
"workflowId": "id",
"workflow": {
"__typename": "Workflow"
},
"triggeredBy": "string",
"executionStatus": "QUEUED",
"errorMessage": "string"
}
}
],
"pageInfo": {
"hasPreviousPage": true,
"hasNextPage": true,
"startCursor": "string",
"endCursor": "string"
}
}
}
}Queries
workflowExecutionsByEntity
List workflow executions filtered by the entity they ran against (e.g. a specific thread), paginated. Useful for showing all automation that has fired on a given thread. Optionally narrow further by workflow ID or execution status.
QUERY
workflowExecutionsByEntity(filters: WorkflowExecutionByEntityFilter!, first: Int, after: String, last: Int, before: String): WorkflowExecutionConnection!Arguments
filters
required
first
Int
after
String
last
Int
before
String
Returns
edges
pageInfo
Query
query WorkflowExecutionsByEntity($filters: WorkflowExecutionByEntityFilter!) {
workflowExecutionsByEntity(filters: $filters) {
edges {
cursor
node {
id
workflowId
workflow {
__typename
}
triggeredBy
executionStatus
errorMessage
}
}
pageInfo {
hasPreviousPage
hasNextPage
startCursor
endCursor
}
}
}Variables
{
"filters": {
"entityType": "THREAD",
"entityId": "id"
}
}Response
{
"data": {
"workflowExecutionsByEntity": {
"edges": [
{
"cursor": "string",
"node": {
"id": "id",
"workflowId": "id",
"workflow": {
"__typename": "Workflow"
},
"triggeredBy": "string",
"executionStatus": "QUEUED",
"errorMessage": "string"
}
}
],
"pageInfo": {
"hasPreviousPage": true,
"hasNextPage": true,
"startCursor": "string",
"endCursor": "string"
}
}
}
}Was this page helpful?

