query QueryScxItemCustomAttributeValues($salesChannelId: String!, $itemId: ID!) {
QueryScxItemCustomAttributeValues(salesChannelId: $salesChannelId, itemId: $itemId) {
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
edges {
cursor
node {
name
value
isTemplate
id
salesChannelId
itemId
}
}
nodes {
name
value
isTemplate
id
salesChannelId
itemId
}
totalCount
}
}{
"salesChannelId": "string",
"itemId": "id"
}{
"data": {
"QueryScxItemCustomAttributeValues": {
"pageInfo": {
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": "string",
"endCursor": "string"
},
"edges": [
{
"cursor": "string",
"node": {
"name": "string",
"value": "string",
"isTemplate": true,
"id": "id",
"salesChannelId": "id",
"itemId": "id"
}
}
],
"nodes": [
{
"name": "string",
"value": "string",
"isTemplate": true,
"id": "id",
"salesChannelId": "id",
"itemId": "id"
}
],
"totalCount": 1
}
}
}QueryScxItemCustomAttributeValues
Delivers the custom fields that an SCX seller stored on an item, i.e. the entries without an attribute code that have a name which is not empty; a name of spaces only counts as a name and is returned as stored, without trimming. Entries with an attribute code are not returned. Unless a sort order is requested, the entries are ordered by name and ID. A requested sort order replaces this default order, and entries with the same name are not ordered further, so paging through a sorted result can repeat or skip entries. An invalid sales channel id is rejected as invalid (error code SALES_CHANNEL_ID_INVALID); an unknown, deleted or deactivated sales channel, one that 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 custom fields yields an empty page.
QueryScxItemCustomAttributeValues(salesChannelId: String!, itemId: ID!, first: Int, after: String, last: Int, before: String, order: [ScxItemCustomAttributeValueSortInput!]): QueryScxItemCustomAttributeValuesConnectionArguments
Sales channel id of the SCX seller/account. Opaque, tenant-local composite identifier (not a UUID); use the id of a sales channel as returned by the sales channels query.
ID of the item.
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.
Sorts the elements of the list. Several entries sort by the first, then by the next.
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 QueryScxItemCustomAttributeValues($salesChannelId: String!, $itemId: ID!) {
QueryScxItemCustomAttributeValues(salesChannelId: $salesChannelId, itemId: $itemId) {
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
edges {
cursor
node {
name
value
isTemplate
id
salesChannelId
itemId
}
}
nodes {
name
value
isTemplate
id
salesChannelId
itemId
}
totalCount
}
}{
"salesChannelId": "string",
"itemId": "id"
}{
"data": {
"QueryScxItemCustomAttributeValues": {
"pageInfo": {
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": "string",
"endCursor": "string"
},
"edges": [
{
"cursor": "string",
"node": {
"name": "string",
"value": "string",
"isTemplate": true,
"id": "id",
"salesChannelId": "id",
"itemId": "id"
}
}
],
"nodes": [
{
"name": "string",
"value": "string",
"isTemplate": true,
"id": "id",
"salesChannelId": "id",
"itemId": "id"
}
],
"totalCount": 1
}
}
}Was this page helpful?