> ## Documentation Index
> Fetch the complete documentation index at: https://developer.jtl-software.com/llms.txt
> Use this file to discover all available pages before exploring further.

# QueryScxChannelCustomAttributeValues

> Delivers the custom fields that an SCX seller stored on channel level, 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). A seller without custom fields yields an empty page.



**query** `QueryScxChannelCustomAttributeValues(salesChannelId: String!, first: Int, after: String, last: Int, before: String, order: [ScxChannelCustomAttributeValueSortInput!]): QueryScxChannelCustomAttributeValuesConnection`

## Arguments

**`salesChannelId`**: `String!` (required)

---

**`first`**: `Int`

Returns the first _n_ elements from the list.

---

**`after`**: `String`

Returns the elements in the list that come after the specified cursor.

---

**`last`**: `Int`

Returns the last _n_ elements from the list.

---

**`before`**: `String`

Returns the elements in the list that come before the specified cursor.

---

**`order`**: `[ScxChannelCustomAttributeValueSortInput!]`

## Returns

`QueryScxChannelCustomAttributeValuesConnection`

**`pageInfo`**: `PageInfo!`

Information to aid in pagination.

---

**`edges`**: `[QueryScxChannelCustomAttributeValuesEdge!]`

A list of edges.

---

**`nodes`**: `[ScxChannelCustomAttributeValue!]`

A flattened list of the nodes.

---

**`totalCount`**: `Int!`

Identifies the total count of items in the connection.

## Examples

```graphql Query
query QueryScxChannelCustomAttributeValues($salesChannelId: String!) {
  QueryScxChannelCustomAttributeValues(salesChannelId: $salesChannelId) {
    pageInfo {
      hasNextPage
      hasPreviousPage
      startCursor
      endCursor
    }
    edges {
      cursor
      node {
        name
        value
        isTemplate
        id
        salesChannelId
      }
    }
    nodes {
      name
      value
      isTemplate
      id
      salesChannelId
    }
    totalCount
  }
}
```

```json Variables
{
  "salesChannelId": "string"
}
```

```json Response
{
  "data": {
    "QueryScxChannelCustomAttributeValues": {
      "pageInfo": {
        "hasNextPage": true,
        "hasPreviousPage": true,
        "startCursor": "string",
        "endCursor": "string"
      },
      "edges": [
        {
          "cursor": "string",
          "node": {
            "name": "string",
            "value": "string",
            "isTemplate": true,
            "id": "id",
            "salesChannelId": "id"
          }
        }
      ],
      "nodes": [
        {
          "name": "string",
          "value": "string",
          "isTemplate": true,
          "id": "id",
          "salesChannelId": "id"
        }
      ],
      "totalCount": 1
    }
  }
}
```
