Skip to content

AutomationRun

A record of an automation execution

Fields

actions_taken_count · Int! · required · Number of actions that succeeded; 0 for failed runs
automation_name · String! · required · Name of the automation at time of execution
completed_at · ISO8601DateTime · When execution completed
completed_step_count · Int! · required · Number of steps that completed successfully
created_at · ISO8601DateTime! · required · When this record was created
error_message · String · Error description when status is FAILED
id · ID! · required · Unique identifier
outcome · AutomationRunOutcome · Result of the run; null until it completes or fails
resume_at · ISO8601DateTime · When a run paused on a delay step will resume
run_steps · AutomationRunStepPaginationConnection! · required · The individual steps executed during this run
started_at · ISO8601DateTime · When execution started
status · AutomationRunStatus! · required · Execution status of the run
time_saved_seconds · Int! · required · Estimated staff time saved by the actions taken; 0 for failed runs
total_step_count · Int! · required · Total number of steps executed in this run
trigger_data · JSON · The webhook event payload that initiated this run
updated_at · ISO8601DateTime! · required · When this record was last updated

Used By

Definition

"""
A record of an automation execution
"""
type AutomationRun {
"""
Number of actions that succeeded; 0 for failed runs
"""
actions_taken_count: Int!
"""
Name of the automation at time of execution
"""
automation_name: String!
"""
When execution completed
"""
completed_at: ISO8601DateTime
"""
Number of steps that completed successfully
"""
completed_step_count: Int!
"""
When this record was created
"""
created_at: ISO8601DateTime!
"""
Error description when status is FAILED
"""
error_message: String
"""
Unique identifier
"""
id: ID!
"""
Result of the run; null until it completes or fails
"""
outcome: AutomationRunOutcome
"""
When a run paused on a delay step will resume
"""
resume_at: ISO8601DateTime
"""
The individual steps executed during this run
"""
run_steps(
"""
Returns the elements in the list that come after the specified cursor.
"""
after: String
"""
Returns the elements in the list that come before the specified cursor.
"""
before: String
"""
Returns the first _n_ elements from the list.
"""
first: Int
"""
Returns the last _n_ elements from the list.
"""
last: Int
): AutomationRunStepPaginationConnection!
"""
When execution started
"""
started_at: ISO8601DateTime
"""
Execution status of the run
"""
status: AutomationRunStatus!
"""
Estimated staff time saved by the actions taken; 0 for failed runs
"""
time_saved_seconds: Int!
"""
Total number of steps executed in this run
"""
total_step_count: Int!
"""
The webhook event payload that initiated this run
"""
trigger_data: JSON
"""
When this record was last updated
"""
updated_at: ISO8601DateTime!
}