query QueryScxItemAttributeValues($salesChannelId: String!, $itemId: ID!) {
QueryScxItemAttributeValues(salesChannelId: $salesChannelId, itemId: $itemId) {
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
edges {
cursor
node {
attributeCode
definitionScope
value
isTemplate
referenceGroup
fileId
}
}
nodes {
attributeCode
definitionScope
value
isTemplate
referenceGroup
fileId
}
totalCount
}
}{
"salesChannelId": "string",
"itemId": "id"
}{
"data": {
"QueryScxItemAttributeValues": {
"pageInfo": {
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": "string",
"endCursor": "string"
},
"edges": [
{
"cursor": "string",
"node": {
"attributeCode": "string",
"definitionScope": "SELLER",
"value": "string",
"isTemplate": true,
"referenceGroup": 1,
"fileId": "id"
}
}
],
"nodes": [
{
"attributeCode": "string",
"definitionScope": "SELLER",
"value": "string",
"isTemplate": true,
"referenceGroup": 1,
"fileId": "id"
}
],
"totalCount": 1
}
}
}QueryScxItemAttributeValues
Delivers the attribute values with an attribute code that are stored on an item for an SCX seller. Custom fields, values inherited from a category or channel, and values whose attribute code has no definition are not returned. The definition of an attribute code is looked up for the seller first, then for the channel, then for the category of the item; the first match determines “DefinitionScope” and the definition id. Unless a sort order is requested, the values are ordered by attribute code, reference group and ID. An invalid sales channel id is rejected as invalid (error code SALES_CHANNEL_ID_INVALID). A sales channel that does not exist, is deleted, is deactivated or is not an SCX seller, or an id whose channel part does not match the seller, is rejected as not found (error code SCX_SALES_CHANNEL_NOT_FOUND); an item that does not exist is rejected as not found (error code SCX_ITEM_NOT_FOUND). An item without values yields an empty page.
QueryScxItemAttributeValues(salesChannelId: String!, itemId: ID!, first: Int, after: String, last: Int, before: String, order: [ScxItemAttributeValueSortInput!]): QueryScxItemAttributeValuesConnectionArguments
Returns the first n elements from the list.
Returns the elements in the list that come after the specified cursor.
Returns the last n elements from the list.
Returns the elements in the list that come before the specified cursor.
Information to aid in pagination.
A list of edges.
A flattened list of the nodes.
Identifies the total count of items in the connection.
query QueryScxItemAttributeValues($salesChannelId: String!, $itemId: ID!) {
QueryScxItemAttributeValues(salesChannelId: $salesChannelId, itemId: $itemId) {
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
edges {
cursor
node {
attributeCode
definitionScope
value
isTemplate
referenceGroup
fileId
}
}
nodes {
attributeCode
definitionScope
value
isTemplate
referenceGroup
fileId
}
totalCount
}
}{
"salesChannelId": "string",
"itemId": "id"
}{
"data": {
"QueryScxItemAttributeValues": {
"pageInfo": {
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": "string",
"endCursor": "string"
},
"edges": [
{
"cursor": "string",
"node": {
"attributeCode": "string",
"definitionScope": "SELLER",
"value": "string",
"isTemplate": true,
"referenceGroup": 1,
"fileId": "id"
}
}
],
"nodes": [
{
"attributeCode": "string",
"definitionScope": "SELLER",
"value": "string",
"isTemplate": true,
"referenceGroup": 1,
"fileId": "id"
}
],
"totalCount": 1
}
}
}Was this page helpful?