Automation Test Event
Requires access scope. Also: The app must have write access to automations and act on behalf of a user.
Sample trigger data used to test an automation.
Anchor to FieldsFields
- createdAt (DateTime!)
- id (ID!)
- name (String!)
- source (AutomationTestEventSource!)
- triggerParams (JSON!)
- Anchor to createdAtcreated•Date
At Time! non-null The date and time when the test event was created.
- •ID!non-null
A globally-unique ID.
- Anchor to namename•String!non-null
The name of the test event.
- Anchor to sourcesource•Automation
Test Event Source! non-null Whether the test event was captured from the automation's trigger or supplied as custom data.
Show enum values
- Anchor to triggerParamstrigger•JSON!
Params non-null The trigger parameters the test event supplies to the automation.
Anchor to MutationsMutations
- automationTestEventsCreate (AutomationTestEventsCreatePayload)
- automationTestEventUpdate (AutomationTestEventUpdatePayload)
- •mutation
Creates custom test events for an automation. If any event is invalid, or the events would exceed the automation's custom test event limit, none of them are created.
Show payload
- Anchor to eventsevents•[Automation
Test Event Input!]! required The custom test events to create.
Show input fields
- Anchor to workflowIdworkflow•ID!
Id required The ID of the automation to create the test events for.
Arguments
- •mutation
Renames a test event or replaces its trigger parameters. Updating a captured test event converts it to custom and counts toward the custom test event limit.
Show payload
- •ID!required
The ID of the test event to update.
- Anchor to namename•String
The new name of the test event. Omit to leave it unchanged.
- Anchor to triggerParamstrigger•JSON
Params The trigger parameters that replace the test event's current ones. Must be a JSON object. Omit to leave them unchanged.
Arguments
- •ID!