---
sourceDocument: Xanadu Now Platform の管理
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/ja-JP/xanadu/platform-administration

 Release :

    - xanadu

ft:locale :

    - ja-JP

ft:publication_title :

    - Xanadu Now Platform の管理

ft:clusterId :

    - platadm

bundleId :

    - platadm

workflow :

    - Platform


---

# レコードへの動的属性の追加

# レコードへの動的属性の追加 {#ariaid-title1}

* リリースバージョン: Xanadu
* 
* 更新日 2024年08月01日
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 所要時間：1分

動的属性とその値をレコードに格納します。

## 始める前に

必要なロール：admin

## 手順

1. 動的属性ストアフィールドを保持するテーブルに移動します。
2. \[新規\] を選択して、新しいレコードを作成します。
3. 作成した動的スキーマ参照フィールドで、レコードに保存する属性を含む単一グループ、複数グループ、単一カテゴリ、または複数カテゴリを選択します。
4. GlideRecord API で setValue() を呼び出し、動的属性ストアフィールドにデータを送信します。

## 「Product (製品)」テーブルレコードの「Voltage attribute (電圧属性)」に値を設定する {#add-dynamic-attributes-record__example_cb3_qhv_gbc}

    var gr = new GlideRecord('products');
    gr.setValue('groups_json->global_electronics_group->voltage', 40);
    gr.insert();


