Menu
marketingEvents
A list of marketing events associated with the marketing app.
Use it in a workflow
- Add a step and choose the Shopify connector.
- Pick the marketingEvents action (under Marketing).
- Fill in the fields below, then reference the result from later steps as
{{marketingevents.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 MarketingEvents($first: Int, $after: String, $last: Int, $before: String, $reverse: Boolean, $sortKey: MarketingEventSortKeys, $query: String) {
marketingEvents(
first: $first
after: $after
last: $last
before: $before
reverse: $reverse
sortKey: $sortKey
query: $query
) {
edges {
cursor
node {
app
channel
channelHandle
description
endedAt
id
legacyResourceId
manageUrl
marketingChannelType
previewUrl
remoteId
scheduledToEndAt
sourceAndMedium
startedAt
targetTypeDisplayText
type
utmCampaign
utmMedium
utmSource
}
}
nodes {
app {
apiKey
appStoreAppUrl
appStoreDeveloperUrl
availableAccessScopes
banner
description
developerName
developerType
developerUrl
embedded
failedRequirements
features
feedback
handle
icon
id
installUrl
installation
isPostPurchaseAppInUse
launchUrl
navigationItems
optionalAccessScopes
previouslyInstalled
pricingDetails
pricingDetailsSummary
privacyPolicyUrl
publicCategory
published
requestedAccessScopes
screenshots
shopifyDeveloped
title
uninstallMessage
uninstallUrl
webhookApiVersion
}
channel
channelHandle
description
endedAt
id
legacyResourceId
manageUrl
marketingChannelType
previewUrl
remoteId
scheduledToEndAt
sourceAndMedium
startedAt
targetTypeDisplayText
type
utmCampaign
utmMedium
utmSource
}
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": "ID",
"query": "string"
}
Response
Read the result with {{marketingevents.response.data.data.marketingEvents}}. If the API returns errors, the step fails and they are at {{marketingevents.response.data.errors}}.
Need more? See the Shopify guide for connection setup and behaviour shared by every action.
Was this page helpful?