--- title: "行からカラム値を取得" url: https://docs.catalyst.zoho.com/ja/sdk/android/v2/cloud-scale/data-store/get-column-value-from-row/ description: "Data Storeテーブルの行から特定のカラムの値を取得できます。" last_updated: 2026-03-24T12:08:39Z 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: "Columns" url: /ja/cloud-scale/help/data-store/columns - name: "Get Metadata of Columns - API" url: /ja/api/code-reference/cloud-scale/data-store/get-all-columns-metadata/#GetAllColumnsMetadata --- # 行からカラム値を取得 `getFieldValue()`メソッドを使用して、[Data Store](https://docs.catalyst.zoho.com/ja/cloud-scale/help/data-store/introduction)テーブルの行から特定のカラムの値を取得できます。たとえば、行内の「Employee ID」という単一のカラムの値が必要な場合、このメソッドを使用してその特定の値を取得できます。 以下のコード構文に示すように、カラムのフィールド名を引数として`getFieldValue()`メソッドに渡す必要があります。 以下のコードで使用する`<TABLE_INSTANCE>`は、[テーブルインスタンスページ](https://docs.catalyst.zoho.com/ja/sdk/android/v2/cloud-scale/data-store/create-table-instance)で定義されているインスタンスです。 ```bash <TABLE_INSTANCE>.getRow( id : Long, success: (ZCatalystRow) → ZCatalystRow.getFieldValue(fieldAPIName: String): Any, failure: ((ZCatalystException) → Unit)? ): ZCatalystRequest<ZCatalystResponse<ZCatalystRow>>? ``` **パラメータ**: * `id`: 取得する必要がある特定の行の[一意のROWID](https://docs.catalyst.zoho.com/ja/cloud-scale/help/data-store/records/#create-a-new-record) * `fieldAPIName`: 値を取得する必要があるカラムの名前 以下にサンプルコードスニペットを示します: ```bash ZCatalystApp.getInstance().getDataStoreInstance().getTableInstance("EmployeeDetails").getRow(2823000000054062, // これをあなたのテーブル名に置き換えてください and the ROWID of the row { row -> println(" The value of 'Employee ID' field is :${row.getFieldValue("EmployeeID")}") //これをあなたの列名に置き換えてください }, { exception -> println("Failed to get the column value! $exception") }) ```