---
sourceDocument: オーストラリア API リファレンス
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/ja-JP/api-reference

 Release :

    - australia

ft:locale :

    - ja-JP

ft:publication_title :

    - オーストラリア API リファレンス

ft:clusterId :

    - crapiref

bundleId :

    - crapiref

workflow :

    - Creator


---

# FetchConfiguration 構造 : iOS

# FetchConfiguration 構造 : iOS {#ariaid-title1}

* リリースバージョン: Australia
* 
* 更新日 2026年03月12日
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 所要時間：3分

FetchConfiguration 構造体は、ServiceNow インスタンスからレコードをフェッチするための構成を定義する機能を提供します。  
{#FetchConfigiOSStructure__table_vx2_klw_5pb__entry__3}

| 名前 | タイプ | 説明 |
|-|-|-|
| フィルター | [フィルター](https://servicenow-prod.fluidtopics.net/Y11sjNmmftd5yve~jvgx2g#FilteriOSStructure "フィルター構造では、REST エンドポイントクエリの戻り結果で返すデータを定義するフィルターを構成できます。") | オプション。返された結果に適用するクエリ。たとえば、「broken」という単語を含む簡単な説明を含むアクティブなレコードのみを返すには、`active=true^` というクエリを渡しますshort_descriptionLIKEbroken デフォルト:nil - フィルターが適用されず、すべてのレコードが返されます (システムまたはテーブルの制限が適用されます)。 |
| limit | 整数 | オプション。ページ/応答ごとに返すレコードの数。 デフォルト:nil - すべてのレコードが返されます (システムまたはテーブルの制限が適用されます)。 |
| readConfiguration | [フィールド読み取り構成](https://servicenow-prod.fluidtopics.net/sGHPF4yadrTvE83TDWpZgw#FieldReadConfigurationiOSStruct "FieldReadConfiguration 構造を使用すると、ServiceNowインスタンステーブルからフェッチするフィールドと形式を構成できます。") | オプション。応答で返されるフィールドの構成。 デフォルト:nil - すべてのフィールドが返されます。 |
[表 : 1. プロパティ]

{#FetchConfigiOSStructure__table_vx2_klw_5pb}

## FetchConfiguration - init(filter: Filter? = nil, limit: Int? = nil, readConfiguration: FieldReadConfiguration? = nil) {#ariaid-title2}

REST エンドポイントを介して ServiceNow インスタンスからデータを取得するときに返すレコードと、それらのレコード内の関連フィールドの基準を定義します。
{#FetConfigiOS-init_S_I_O__table_pgj_tg2_vpb__entry__3}

| 名前 | タイプ | 説明 |
|-|-|-|
| フィルター | [フィルター](https://servicenow-prod.fluidtopics.net/Y11sjNmmftd5yve~jvgx2g#FilteriOSStructure "フィルター構造では、REST エンドポイントクエリの戻り結果で返すデータを定義するフィルターを構成できます。") | オプション。返された結果に適用するクエリ。たとえば、「broken」という単語を含む簡単な説明を含むアクティブなレコードのみを返すには、`active=true^` というクエリを渡しますshort_descriptionLIKEbroken デフォルト:nil - フィルターが適用されず、すべてのレコードが返されます (システムまたはテーブルの制限が適用されます)。 |
| limit | 整数 | オプション。ページ/応答ごとに返すレコードの数。 デフォルト:nil - すべてのレコードが返されます (システムまたはテーブルの制限が適用されます)。 |
| readConfiguration | [フィールド読み取り構成](https://servicenow-prod.fluidtopics.net/sGHPF4yadrTvE83TDWpZgw#FieldReadConfigurationiOSStruct "FieldReadConfiguration 構造を使用すると、ServiceNowインスタンステーブルからフェッチするフィールドと形式を構成できます。") | オプション。応答で返されるフィールドの構成。 デフォルト:nil - すべてのフィールドが返されます。 |
[表 : 2. パラメーター]

{#FetConfigiOS-init_S_I_O__table_pgj_tg2_vpb} {#FetConfigiOS-init_S_I_O__table_qgj_tg2_vpb__entry__2}

| タイプ | 説明 |
|-|-|
| なし |   |
[表 : 3. 返される内容]

{#FetConfigiOS-init_S_I_O__table_qgj_tg2_vpb}  
テーブル API からフェッチするデータの構成方法を示します。

    /// The configuration for what to fetch from the Table API.
    lazy var fetchConfiguration: FetchConfiguration = {
      let includeFields = [
        // Case details
        "number",
        "short_description",
        "priority",
        "state",
        "opened_at",
        
        // Account details
        "account.name",
        "account.number",
        "contact.name",
        "contact.email",
        "contact_type",

        // Assignment
        "assignment_group.name",
        "assigned_to.name"
      ]
      let readConfiguration = FieldReadConfiguration(includeFields: includeFields, options: .actualValues)
      let filter = Filter(criteria: [], sortBy: [.desc("number")], queryCategory: nil)
      return FetchConfiguration(filter: filter, limit: 10, readConfiguration: readConfiguration)
    }()


