Menu
events
A paginated list of events that chronicle activities in the store. Event is an interface implemented by types such as BasicEvent and CommentEvent that track actions such as creating Article objects, fulfilling Order…
Use it in a workflow
- Add a step and choose the Shopify connector.
- Pick the events action (under Events).
- Fill in the fields below, then reference the result from later steps as
{{events.response.data}}.
Query
This is the query the action sends by default. Edit it in the step's Query field to change which fields come back.
query Events($first: Int, $after: String, $last: Int, $before: String, $reverse: Boolean, $sortKey: EventSortKeys, $query: String) {
events(
first: $first
after: $after
last: $last
before: $before
reverse: $reverse
sortKey: $sortKey
query: $query
) {
edges {
cursor
node {
action
appTitle
attributeToApp
attributeToUser
createdAt
criticalAlert
id
message
}
}
nodes {
action
appTitle
attributeToApp
attributeToUser
createdAt
criticalAlert
id
message
}
pageInfo {
endCursor
hasNextPage
hasPreviousPage
startCursor
}
}
}
Variables
Pass these as a JSON object in the step's Variables field.
{
"first": 0,
"after": "string",
"last": 0,
"before": "string",
"reverse": false,
"sortKey": "CREATED_AT",
"query": "string"
}
Response
Read the result with {{events.response.data.data.events}}. If the API returns errors, the step fails and they are at {{events.response.data.errors}}.
Need more? See the Shopify guide for connection setup and behaviour shared by every action.
Was this page helpful?