

Terjemahan disediakan oleh mesin penerjemah. Jika konten terjemahan yang diberikan bertentangan dengan versi bahasa Inggris aslinya, utamakan versi bahasa Inggris.

# Membaca dari entitas Freshdesk
<a name="freshdesk-reading-from-entities"></a>

**Prasyarat**

Objek Freshdesk yang ingin Anda baca. Anda akan membutuhkan nama objek.

**Entitas yang didukung untuk sumber Sinkronisasi**:


| Entitas | Dapat disaring | Mendukung batas | Mendukung Pesanan oleh | Mendukung Pilih \* | Mendukung partisi | 
| --- | --- | --- | --- | --- | --- | 
| Agen | Ya | Ya | Tidak | Ya | Ya | 
| Jam Kerja | Tidak | Ya | Tidak | Ya | Ya | 
| Perusahaan | Ya | Ya | Tidak | Ya | Ya | 
| Kontak  | Ya | Ya | Tidak | Ya | Ya | 
| Percakapan | Tidak | Ya | Tidak | Ya | Tidak | 
| Konfigurasi Email | Tidak | Ya | Tidak | Ya | Tidak | 
| Kotak Masuk Email | Ya | Ya | Ya | Ya | Tidak | 
| Kategori Forum | Tidak | Ya | Tidak | Ya | Tidak | 
| Forum | Tidak | Ya | Tidak | Ya | Tidak | 
| Grup | Tidak | Ya | Tidak | Ya | Tidak | 
| Produk | Tidak | Ya | Tidak | Ya | Tidak | 
| Peran | Tidak | Ya | Tidak | Ya | Tidak | 
| Peringkat Kepuasan | Ya | Ya | Tidak | Ya | Tidak | 
| Keterampilan | Tidak | Ya | Tidak | Ya | Tidak | 
| Solusi | Ya | Ya | Tidak | Ya | Tidak | 
| Survei | Tidak | Ya | Tidak | Ya | Tidak | 
| Tiket | Ya | Ya | Ya | Ya | Ya | 
| Entri Waktu | Ya | Ya | Tidak | Ya | Tidak | 
| Topik | Tidak | Ya | Tidak | Ya | Tidak | 
| Komentar Topik | Tidak | Ya | Tidak | Ya | Tidak | 

**Entitas yang didukung untuk sumber Async**:


| Entitas | Versi API | Dapat disaring | Mendukung batas | Mendukung Pesanan oleh | Mendukung Pilih \* | Mendukung partisi | 
| --- | --- | --- | --- | --- | --- | --- | 
| Perusahaan | v2 | Tidak | Tidak | Tidak | Tidak | Tidak | 
| Kontak  | v2 | Tidak | Tidak | Tidak | Tidak | Tidak | 

**Contoh:**

```
freshdesk_read = glueContext.create_dynamic_frame.from_options(
    connection_type="freshdesk",
    connection_options={
        "connectionName": "connectionName",
        "ENTITY_NAME": "entityName",
        "API_VERSION": "v2"
    }
```

**Entitas Freshdesk dan detail bidang**:


| Entitas | Bidang | 
| --- | --- | 
| Agen | https://developers.freshdesk.com/api/\#list\_all\_agents | 
| Jam kerja | https://developers.freshdesk.com/api/\#list\_all\_business\_hours | 
| Komentar | https://developers.freshdesk.com/api/\#comment\_attributess | 
| Perusahaan | https://developers.freshdesk.com/api/\#companies | 
| Kontak  | https://developers.freshdesk.com/api/\#list\_all\_contacts | 
| Percakapan | https://developers.freshdesk.com/api/\#list\_all\_ticket\_notes | 
| Konfigurasi email | https://developers.freshdesk.com/api/\#list\_all\_email\_configs | 
| Kotak masuk email | https://developers.freshdesk.com/api/\#list\_all\_email\_mailboxes | 
| Forum-kategori | https://developers.freshdesk.com/api/\#category\_attributes | 
| Forum | https://developers.freshdesk.com/api/\#forum\_attributes | 
| Grup | https://developers.freshdesk.com/api/\#list\_all\_groups | 
| Produk | https://developers.freshdesk.com/api/\#list\_all\_products | 
| Peran | https://developers.freshdesk.com/api/\#list\_all\_roles | 
| Peringkat kepuasan | https://developers.freshdesk.com/api/\#view\_all\_satisfaction\_ratingss | 
| Keterampilan | https://developers.freshdesk.com/api/\#list\_all\_skills | 
| Solusi | https://developers.freshdesk.com/api/\#solution\_content | 
| Survei | https://developers.freshdesk.com/api/\#list\_all\_survey | 
| Tiket | https://developers.freshdesk.com/api/\#list\_all\_tickets | 
| Entri waktu | https://developers.freshdesk.com/api/\#list\_all\_time\_entries | 
| Topik | https://developers.freshdesk.com/api/\#topic\_attributes | 

## Mempartisi kueri
<a name="freshdesk-reading-partitioning-queries"></a>

Partisi **berbasis filter**:

Anda dapat memberikan opsi Spark tambahan`PARTITION_FIELD`,, `LOWER_BOUND``UPPER_BOUND`, dan `NUM_PARTITIONS` jika Anda ingin memanfaatkan konkurensi di Spark. Dengan parameter ini, kueri asli akan dibagi menjadi `NUM_PARTITIONS` sejumlah sub-kueri yang dapat dijalankan oleh tugas Spark secara bersamaan.
+ `PARTITION_FIELD`: nama bidang yang akan digunakan untuk mempartisi kueri.
+ `LOWER_BOUND`: nilai batas bawah **inklusif** dari bidang partisi yang dipilih.

  Untuk bidang Datetime, kami menerima format stempel waktu Spark yang digunakan dalam kueri Spark SQL.

  Contoh nilai valid:

  ```
  "2024-09-30T01:01:01.000Z"
  ```
+ `UPPER_BOUND`: nilai batas atas **eksklusif** dari bidang partisi yang dipilih.
+ `NUM_PARTITIONS`: jumlah partisi.

Contoh:

```
freshDesk_read = glueContext.create_dynamic_frame.from_options(
     connection_type="freshdesk",
     connection_options={
         "connectionName": "connectionName",
         "ENTITY_NAME": "entityName",
         "API_VERSION": "v2",
         "PARTITION_FIELD": "Created_Time"
         "LOWER_BOUND": " 2024-10-27T23:16:08Z“
         "UPPER_BOUND": " 2024-10-27T23:16:08Z"
         "NUM_PARTITIONS": "10"
     }
```