---
sourceDocument: Xanadu ServiceNow AI Platform Administration
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/xanadu/platform-administration

 Release :

    - xanadu

ft:locale :

    - en-US

ft:publication_title :

    - Xanadu ServiceNow AI Platform Administration

ft:clusterId :

    - platadm

bundleId :

    - platadm

workflow :

    - Platform


---

# Add dynamic attributes to a record

# Add dynamic attributes to a record {#ariaid-title1}

* Release version: Xanadu
* 
* Updated August 1, 2024
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

Store dynamic attributes and their values on a record.

## Before you begin

Role required: admin

## Procedure

1. Navigate to the table that holds your dynamic attribute store field.
2. Create a new record by selecting New.
3. In the dynamic schema reference field you created, select the group, groups, category, or categories that contain the attributes that you want to store on the record.
4. Call setValue() in the GlideRecord API and send data to the dynamic attribute store field.

## Setting a value in the voltage attribute in a Product table record {#add-dynamic-attributes-record__example_cb3_qhv_gbc}

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

In the example, the schema was defined a dynamic schema with a category of groups_json, a group of global_electronics_group and an attribute of voltage. A typical
example may be category = Television, group = dimensions, attribute = screen size.

