--- title: "行の取得" url: https://docs.catalyst.zoho.com/ja/sdk/flutter/v2/cloud-scale/data-store/get-rows/ description: "指定されたインスタンスのData Storeテーブルから、特定の単一行またはすべての行を取得できます。" last_updated: 2026-02-23T12:39:41Z service: Cloud Scale type: general related_links: - name: "Data Store" url: /ja/cloud-scale/help/data-store/introduction - name: "Records" url: /ja/cloud-scale/help/data-store/records - name: "Get All Rows - API" url: /ja/api/code-reference/cloud-scale/data-store/get-all-rows/#GetAllRows --- # 行の取得 ### 特定の行を取得する `getRow()`メソッドを使用して、指定されたインスタンスの[Data Store](https://docs.catalyst.zoho.com/ja/cloud-scale/help/data-store/introduction)テーブルから特定の単一行を取得できます。以下のコード構文に示すように、行の一意のROWIDをこのメソッドの引数として渡します。 以下のコードで使用される`<TABLE_INSTANCE>`は、[テーブルインスタンスページ](https://docs.catalyst.zoho.com/ja/sdk/flutter/v2/cloud-scale/data-store/create-table-instance)で定義されたインスタンスです。 ```bash Future<(APIResponse, ZCatalystRow)> <TABLE_INSTANCE>.getRow(int id) ``` **パラメータ**: * `id`: 取得する必要がある特定の行の[一意のROWID](https://docs.catalyst.zoho.com/ja/cloud-scale/help/data-store/records/#create-a-new-record) サンプルコードスニペットを以下に示します: ```bash try { ZCatalystTable table = app.getDataStoreInstance().getTableInstance('Projects'); var (response, row) = await table.getRow(1624000000139040); print(row.id); } on ZCatalystException catch (ex) { print(ex.toString()); } ``` ### すべての行を取得する 以下のコード構文に示すように、`getRows()`メソッドを使用して、指定されたインスタンスのテーブルのすべての行を取得できます。操作が成功した場合、このメソッドはフィルターや条件なしでテーブルのすべての行を返します。 以下のコード構文で使用される`<TABLE_INSTANCE>`は、[テーブルインスタンスページ](https://docs.catalyst.zoho.com/ja/sdk/flutter/v2/cloud-scale/data-store/create-table-instance)で定義されたインスタンスです。 ```bash Future<(APIResponse, List)> <TABLE_INSTANCE>.getRows() ``` サンプルコードスニペットを以下に示します: ```bash try { var (response, rows, resInfo) = await app .getDataStoreInstance() .getTableInstance('Projects') .getRows(); for (var row in rows) { print(row.getData()); } } on ZCatalystException catch (ex) { print(ex.toString()); } ```