Menu
sellingPlanGroups
Retrieves a paginated list of SellingPlanGroup objects that belong to the app making the API call.
Use it in a workflow
- Add a step and choose the Shopify connector.
- Pick the sellingPlanGroups action (under Selling).
- Fill in the fields below, then reference the result from later steps as
{{sellingplangroups.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 SellingPlanGroups($first: Int, $after: String, $last: Int, $before: String, $reverse: Boolean, $sortKey: SellingPlanGroupSortKeys, $query: String) {
sellingPlanGroups(
first: $first
after: $after
last: $last
before: $before
reverse: $reverse
sortKey: $sortKey
query: $query
) {
edges {
cursor
node {
appId
createdAt
description
id
merchantCode
name
options
position
productsCount
summary
}
}
nodes {
appId
createdAt
description
id
merchantCode
name
options
position
productsCount {
count
precision
}
summary
}
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 {{sellingplangroups.response.data.data.sellingPlanGroups}}. If the API returns errors, the step fails and they are at {{sellingplangroups.response.data.errors}}.
Need more? See the Shopify guide for connection setup and behaviour shared by every action.
Was this page helpful?