Automation Step Run
Requires access scope. Also: The app must have write access to automations and act on behalf of a user.
A recorded execution of a step in an automation run. Its diagnostics are read
only when selected: select input, output, error, logs, condition, or
on at most five executions at a time.
Anchor to FieldsFields
- condition (AutomationRunData)
- conditionalOutput (AutomationRunData)
- error (AutomationRunData)
- id (ID!)
- input (AutomationRunData)
- iterationTrail (String)
- lastRunAt (DateTime)
- logs (AutomationRunData)
- output (AutomationRunData)
- status (AutomationStepRunStatus)
- stepId (String)
- taskId (String)
- workflowVersion (String)
- Anchor to conditioncondition•Automation
Run Data A condition execution's definition, from the automation version that the execution recorded, never the current version. The value is a flat list of nodes. Each node's
kindisCOMPARISON,LOGICAL_EXPRESSION,ARRAY_EXPRESSION,ENVIRONMENT_VALUE, orLITERAL_VALUE, and itsuuidmatchesin. The state iswhen that version or its step is missing or, for a test run, when the definition doesn't compile or its compiled digest is missing or differs from the digest that the run recorded. For a test run, the field returns an access denied error, not a state, when the current permissions don't allow a test of the definition. The state iswhen the execution isn't a condition. Each execution that selects this field is one of the request's automation run reads. A request makes at most 32, and each read after that returns aBAD_REQUESTerror.Show fields
- Anchor to conditionalOutputconditional•Automation
Output Run Data A condition execution's recorded observations, as a list of
,, andoutput. Theoutputis a string: the text of a scalar, or the JSON text of an object or an array. An operation can have several observations from list iterations. A missing observation isn'tfalse. The state iswhen the execution has more than 500 stored records, rollover copies included. The value is never truncated, and this field has no continuation. The state iswhen a record is newer than the execution's checkpoint. Each execution that selects this field is one of the request's automation run reads. A request makes at most 32, and each read after that returns aBAD_REQUESTerror.Show fields
- Anchor to errorerror•Automation
Run Data The execution's error as a
summary, optionaldetails, andcauses: at most 10 error nodes, the root included, nested at most 10 levels deep. Causes beyond those limits are dropped and markedtruncated. Exception classes and backtraces aren't returned. Each execution that selects this field is one of the request's automation run reads. A request makes at most 32, and each read after that returns aBAD_REQUESTerror.Show fields
- •ID!non-null
The ID of the recorded execution. It identifies the execution, not the step or an individual retry attempt, and only resolves under the run it came from.
- Anchor to inputinput•Automation
Run Data The execution's parsed input. A wait step's internal routing fields are removed. Each execution that selects this field is one of the request's automation run reads. A request makes at most 32, and each read after that returns a
BAD_REQUESTerror.Show fields
- Anchor to iterationTrailiteration•String
Trail The execution's iteration trail, serialized as a JSON array.
- Anchor to lastRunAtlast•Date
Run At Time The date and time of the execution's last checkpoint. This isn't when the execution started.
- Anchor to logslogs•Automation
Run Data The message that the execution recorded in its output. This isn't a run-wide log stream. Each execution that selects this field is one of the request's automation run reads. A request makes at most 32, and each read after that returns a
BAD_REQUESTerror.Show fields
- Anchor to outputoutput•Automation
Run Data The execution's parsed output. For a wait step, this is its hydrated continuation when it has one, without internal routing fields. Each execution that selects this field is one of the request's automation run reads. A request makes at most 32, and each read after that returns a
BAD_REQUESTerror.Show fields
- Anchor to statusstatus•Automation
Step Run Status The effective status of the execution at read time, including run cancellation and failed wait continuations.
Show enum values
- Anchor to stepIdstep•String
Id The ID of the step in the automation's configuration. Several loop executions can share it.
- Anchor to taskIdtask•String
Id The ID of the task that the execution recorded.
- Anchor to workflowVersionworkflow•String
Version The automation version that the execution ran on. A run can span versions after a wait step.