

Les traductions sont fournies par des outils de traduction automatique. En cas de conflit entre le contenu d'une traduction et celui de la version originale en anglais, la version anglaise prévaudra.

# Lecture à partir d’entités Kustomer
<a name="kustomer-reading-from-entities"></a>

**Prérequis**

Un objet Kustomer à partir duquel vous souhaitez lire. Vous aurez besoin du nom de l’objet, comme Brands ou Cards. Le tableau suivant présente les entités prises en charge.

**Entités prises en charge pour la source** :


| Entité | Peut être filtré | Limit prise en charge | Order by prise en charge | Select prise en charge\$1 | Partitionnement pris en charge | 
| --- | --- | --- | --- | --- | --- | 
| Brands | Non | Oui | Non | Oui | Non | 
| Cards | Non | Oui | Non | Oui | Non | 
| Chat Settings | Non | Non | Non | Oui | Non | 
| Companies | Oui | Oui | Oui | Oui | Oui | 
| Conversations | Oui | Oui | Oui | Oui | Oui | 
| Customers | Oui | Oui | Oui | Oui | Oui | 
| Customer Searches Pinned | Non | Oui | Non | Oui | Non | 
| Customer Searches Position | Non | Non | Non | Oui | Non | 
| Email Hooks | Non | Oui | Non | Oui | Non | 
| Web Hooks | Non | Oui | Non | Oui | Non | 
| KB Articles | Non | Oui | Non | Oui | Non | 
| KB Categories | Non | Oui | Non | Oui | Non | 
| KB Forms | Non | Oui | Non | Oui | Non | 
| KB Routes | Non | Oui | Non | Oui | Non | 
| KB Tags | Non | Oui | Non | Oui | Non | 
| KB Templates | Non | Oui | Non | Oui | Non | 
| KB Themes | Non | Oui | Non | Oui | Non | 
| Klasses | Non | Oui | Non | Oui | Non | 
| KViews | Non | Oui | Non | Oui | Non | 
| Messages | Oui | Oui | Oui | Oui | Oui | 
| Remarques | Oui | Oui | Oui | Oui | Oui | 
| Notifications | Non | Oui | Non | Oui | Non | 

**Exemple :**

```
Kustomer_read = glueContext.create_dynamic_frame.from_options(
    connection_type="kustomer",
    connection_options={
        "connectionName": "connectionName",
        "ENTITY_NAME": "brands",
        "API_VERSION": "v1"
    }
```

## Détails des entités et des champs Kustomer
<a name="kustomer-reading-from-entities-field-details"></a>

Pour plus d’informations sur les entités et de détails sur les champs, consultez :
+ [Brands](https://api.kustomerapp.com/v1/brands)
+ [Cards](https://api.kustomerapp.com/v1/cards)
+ [Chat Settings](https://api.kustomerapp.com/v1/chat/settings)
+ [Companies](https://api.kustomerapp.com/v1/companies)
+ [Conversations](https://api.kustomerapp.com/v1/conversations)
+ [Customers](https://api.kustomerapp.com/v1/customers)
+ [Customers Searches Pinned](https://api.kustomerapp.com/v1/customers/searches/pinned)
+ [Customer Searches Positions](https://api.kustomerapp.com/v1/customers/searches/positions)
+ [Hooks Email](https://api.kustomerapp.com/v1/hooks/email)
+ [Hooks Web](https://api.kustomerapp.com/v1/hooks/web)
+ [KB Articles](https://api.kustomerapp.com/v1/kb/articles)
+ [KB Categories](https://api.kustomerapp.com/v1/kb/categories)
+ [KB Forms]( https://api.kustomerapp.com/v1/kb/forms)
+ [KB Routes](https://api.kustomerapp.com/v1/kb/routes)
+ [KB Tags](https://api.kustomerapp.com/v1/kb/tags)
+ [KB Templates](https://api.kustomerapp.com/v1/kb/templates)
+ [KB Themes](https://api.kustomerapp.com/v1/kb/themes)
+ [Klasses](https://api.kustomerapp.com/v1/klasses)
+ [KViews](https://api.kustomerapp.com/v1/kviews)
+ [Messages](https://api.kustomerapp.com/v1/messages)
+ [Remarques](https://api.kustomerapp.com/v1/notes)
+ [Notifications](https://api.kustomerapp.com/v1/notifications)

API Kustomer v1

[\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/fr_fr/glue/latest/dg/kustomer-reading-from-entities.html)

## Requêtes de partitionnement
<a name="kustomer-reading-from-partitioning"></a>

**Partitionnement basé sur les champs**

Vous pouvez indiquer les options Spark supplémentaires `PARTITION_FIELD`, `LOWER_BOUND`, `UPPER_BOUND` et `NUM_PARTITIONS` si vous souhaitez utiliser la simultanéité dans Spark. Avec ces paramètres, la requête d’origine serait divisée en `NUM_PARTITIONS` nombres de sous-requêtes pouvant être exécutées simultanément par les tâches Spark.
+ `PARTITION_FIELD` : le nom du champ à utiliser pour partitionner la requête.
+ `LOWER_BOUND` : une valeur limite inférieure **inclusive** du champ de partition choisi.

  Pour le DateTime champ, nous acceptons la valeur au format ISO.

  Exemple de valeur valide :

  ```
  "2023-01-15T11:18:39.205Z"
  ```
+ `UPPER_BOUND` : une valeur limite supérieure **exclusive** du champ de partition choisi.
+ `NUM_PARTITIONS` : le nombre de partitions.

Les détails relatifs à la prise en charge des champs de partitionnement par entité sont présentés dans le tableau suivant :

[\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/fr_fr/glue/latest/dg/kustomer-reading-from-entities.html)

Exemple :

```
Kustomer_read = glueContext.create_dynamic_frame.from_options(
    connection_type="kustomer",
    connection_options={
        "connectionName": "connectionName",
        "ENTITY_NAME": "conversation",
        "API_VERSION": "v1",
        "PARTITION_FIELD": "createdAt"
        "LOWER_BOUND": "2023-01-15T11:18:39.205Z"
        "UPPER_BOUND": "2023-02-15T11:18:39.205Z"
        "NUM_PARTITIONS": "2"
    }
```