--- title: "行にカラム値を追加" url: https://docs.catalyst.zoho.com/ja/sdk/ios/v2/cloud-scale/data-store/add-column-value-to-row/ description: "行内の特定のカラムに値を設定できます。" 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: "Get Metadata of Coulumns - API" url: /ja/api/code-reference/cloud-scale/data-store/get-all-columns-metadata/#GetAllColumnsMetadata --- # 行にカラム値を追加 このメソッドを使用して、行内の特定のカラムに値を設定できます。行の作成時または更新時に使用できます。 以下のコードで使用されている`<ROW_INSTANCE>`は、[行インスタンスページ](https://docs.catalyst.zoho.com/ja/sdk/ios/v2/cloud-scale/data-store/create-new-row-instance)で作成されたインスタンスです。 ```bash <ROW_INSTANCE>.setColumnValue( columnName : String, value : Any? ) ``` **パラメータ**: * `columnName`: 値を設定するカラムの名前 * `value`: カラムに設定する値 サンプルコードスニペットは以下の通りです: ```bash let instance = ZCatalystApp.shared.getDataStoreInstance().getTableInstance(id: 1096000000002071).newRow() //これをあなたのテーブルIDに置き換えてください instance.setColumnValue(columnName: "Department_Name", value: "Marketing") instance.setColumnValue(columnName: "Employee_Name", value: "Robert Jones") //これをあなたの列名に置き換えてください and value ```