automation Workflow
Requires access scope. Also: The app must have write access to automations and act on behalf of a user.
Returns a saved automation version. Without a version, returns the latest draft or the most recently published version if no draft exists.
Arguments
- id (ID!)
- version (String)
- •ID!required
The ID of the automation to return.
- Anchor to versionversion•String
The automation version to return. Omit or use null to return the latest draft, or the most recently published version if no draft exists.
Anchor to Possible returnsPossible returns
- AutomationWorkflow (AutomationWorkflow)
- Anchor to AutomationWorkflowAutomation•Automation
Workflow Workflow A version of an automation that runs tasks when a trigger event occurs. An automation can have a saved draft while another version is active. All versions share the same ID, name, and tags; configuration, note, and
describe the selected version.Use
to create a draft andto edit it. Comparewithversionto check whether this version is running.Show fields
- Anchor to activeVersionactive•String
Version The version of the automation that's currently active, or null when the automation is inactive. This version is active only when it matches
version.- Anchor to adminApiVersionadmin•String
Api Version The Admin API version used by this automation version.
- Anchor to configurationconfiguration•JSON!non-null
The steps, links, and custom fields (
) for this version, encoded as JSON. Includes__metadata.versionfor the configuration format. Name, tags, and note are returned as separate fields. Use this value as the replacement configuration in. See the workflow configuration JSON Schema.- Anchor to createdAtcreated•Date
At Time! non-null The date and time when the automation was created.
- •ID!non-null
A globally-unique ID.
- Anchor to namename•String!non-null
The automation name, shared by all versions.
- Anchor to notenote•String
The note stored on this version. Null if no note is set.
- •[String!]!non-null
The automation tags, shared by all versions. An empty list if none are set.
- Anchor to updatedAtupdated•Date
At Time! non-null The date and time when the automation was last updated.
- Anchor to validationErrorsvalidation•[Automation
Errors Workflow Validation Error!]! non-null Validation errors for this version, excluding resource availability errors. These errors don't prevent saving or reading the automation. An empty list doesn't guarantee that activation will succeed.
Show fields
- Anchor to versionversion•String!non-null
The identifier of this automation version. Draft edits and changes to name, tags, or note keep this identifier.
- Anchor to versionStateversion•Automation
State Workflow Version State! non-null The definition state of this automation version, independent of activation.
Show enum values