Sales & CRMQu Query

listProductTemplateVersions

Topics: Product Templates

List published versions of a template with pagination. Requires productTemplate:read permission.

Returns

ProductTemplateVersionConnection!

Arguments

Product template ID

first

IntOptional

Number of items from the start

after

StringOptional

Cursor to start after

Examples

Browse published product template versions

query BrowsePrintingTemplateVersions($templateId: ProductTemplateID!, $first: Int!, $after: String) {
  listProductTemplateVersions(templateId: $templateId, first: $first, after: $after) {
    edges { node { id productTemplateId version publishedBy createdAt } }
    pageInfo { hasNextPage endCursor }
  }
}

Variables

{
  "templateId": "ptl_00000000008008000000000281",
  "first": 20
}
Exact field SDL
"""
List published versions of a template with pagination. Requires productTemplate:read permission.
"""
listProductTemplateVersions(
  """Product template ID"""
  templateId: ProductTemplateID!
  """Number of items from the start"""
  first: Int
  """Cursor to start after"""
  after: String
): ProductTemplateVersionConnection! @topic(names: ["productTemplates"]) @topic_example(names: ["production.browse-template-versions"])

Declared on Query. Access is checked by the platform for each operation.