---
sourceDocument: 요코하마 ServiceNow AI 플랫폼 관리
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/ko-KR/yokohama/platform-administration

 Release :

    - yokohama

ft:locale :

    - ko-KR

ft:publication_title :

    - 요코하마 ServiceNow AI 플랫폼 관리

ft:clusterId :

    - platadm

bundleId :

    - platadm

workflow :

    - Platform


---

# 동적 스키마

# 동적 스키마 {#ariaid-title1}

* 릴리스 버전: Yokohama
* 
* 업데이트 날짜 2025년 01월 30일
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 소요 시간: 4분

범주, 그룹 및 속성의 계층 구조를 정의하고 사용자가 기록의 속성 그룹을 선택할 수 있도록 합니다.

## 주요 이점 {#dynamic-schema__section_x1y_px3_1bc}

* 테이블에 새 열을 추가하는 대신 유연한 스키마로 메타데이터를 구성하고 정의합니다.
* 동적 속성을 그룹화하기 위한 구조적 프레임워크를 정의합니다.
* 기록당 다양한 속성을 사용하여 동적으로 데이터를 캡처합니다.
{#dynamic-schema__ul_gcm_qx3_1bc}

## 동적 스키마 워크플로우 {#dynamic-schema__section_cwh_5x3_1bc}

1. 메타데이터 전략을 계획합니다.
2. 속성 그룹을 생성합니다.
3. 각 그룹에 동적 속성을 추가합니다.
4. 그룹을 범주로 구성합니다.
5. 테이블에 동적 속성 스토어 필드를 추가합니다.
6. GlideRecord setValue() 메서드를 사용하여 동적 속성 저장소 필드를 채웁니다.
{#dynamic-schema__ol_lt3_xx3_1bc}

## 사용 사례 {#dynamic-schema__section_r3d_wx3_1bc}

* 제품에 대한 동적 스키마를 정의하여 대형 백화점에서 판매되는 제품을 설명하는 속성-값 쌍의 그룹을 캡처합니다. 속성과 해당 데이터를 동적 속성 스토어 필드에 저장합니다.예를 들어 TV, 자외선 차단제, 베개 및 셔츠와 같은 다양한 유형의 제품에 대한 기록을 저장하는 사용자 지정 제품 테이블이 있다고 가정해 보겠습니다. 각 제품 유형(예: 화면 유형, UPC, 색상 또는 크기)에 대한 동적 속성 그룹을 생성할 수 있습니다. 그룹을 동적 범주(예: 전자 제품, 건강 및 미용, 가정용품, 의류)로 구성할 수 있습니다. 사용자는 제품 테이블에 기록을 추가하고 각 제품 기록에서 다양한 속성을 캡처할 수 있습니다.

* 동적 속성 스토어 필드에서 하나 이상의 동적 속성-값 쌍을 문자열 객체로 캡처하여 기록을 설명합니다. 동적 속성 저장소 필드를 테이블에 추가하고 GlideRecord API를 사용하여 문자열 데이터로 필드를 채워 기록에서 임시 속성-값 쌍을 캡처할 수도 있습니다.
{#dynamic-schema__ul_tp3_g3w_jbc}

## API {#dynamic-schema__section_kwh_1bm_bcc}

동적 스키마는 JavaScript를 사용하여 테이블의 동적 속성에 액세스하고 관리할 수 있는 전역 API도 제공합니다. 다음은 동적 속성을 지원하는 API와 메서드를 나열합니다.

* [DynamicSchemaAPI - Global](https://www.servicenow.com/docs/access?context=DynamicSchemaAPI&version=yokohama&pubname=yokohama-api-reference&ft:locale=en-US)
* [GlideAggregate - Global](https://www.servicenow.com/docs/access?context=c_GlideAggregateAPI&version=yokohama&pubname=yokohama-api-reference&ft:locale=en-US)

  다음 GlideAggregate 메서드만 동적 속성 사용을 지원합니다.
  * [GlideAggregate - addAggregate(String agg, String name)](https://www.servicenow.com/docs/access?context=c_GlideAggregateAPI&version=yokohama&pubname=yokohama-api-reference&section=r_GlideAggregate-addAggregate_String_String&ft:locale=en-US)
  * [GlideAggregate - addHaving(String aggName, String fieldName, String operator, String value)](https://www.servicenow.com/docs/access?context=c_GlideAggregateAPI&version=yokohama&pubname=yokohama-api-reference&section=GlideAgg-addHaving_S_S_S_S&ft:locale=en-US)
  * [GlideAggregate - getValue(String name)](https://www.servicenow.com/docs/access?context=c_GlideAggregateAPI&version=yokohama&pubname=yokohama-api-reference&section=r_GlideAggregate-getValue_String&ft:locale=en-US)
  * [GlideAggregate - groupBy(String name)](https://www.servicenow.com/docs/access?context=c_GlideAggregateAPI&version=yokohama&pubname=yokohama-api-reference&section=r_GlideAggregate-groupBy_String&ft:locale=en-US)
  * [GlideAggregate - orderBy(String name)](https://www.servicenow.com/docs/access?context=c_GlideAggregateAPI&version=yokohama&pubname=yokohama-api-reference&section=r_GlideAggregate-orderBy_String&ft:locale=en-US)
  * [GlideAggregate - orderByAggregate(String agg, String fieldName)](https://www.servicenow.com/docs/access?context=c_GlideAggregateAPI&version=yokohama&pubname=yokohama-api-reference&section=r_GlideAggregate-orderByAggregate_String_String&ft:locale=en-US)
* [GlideDynamicAttributeStore - Global](https://www.servicenow.com/docs/access?context=GlideDynamicAttStoreAPI&version=yokohama&pubname=yokohama-api-reference&ft:locale=en-US)
* [GlideElementDynamicAttributeStore - Global](https://www.servicenow.com/docs/access?context=GlideElementDynamicAttStoreAPI&version=yokohama&pubname=yokohama-api-reference&ft:locale=en-US)
* [GlideRecord - Global](https://www.servicenow.com/docs/access?context=c_GlideRecordAPI&version=yokohama&pubname=yokohama-api-reference&ft:locale=en-US)

  다음 GlideRecord 메서드만 동적 속성을 지원합니다.
  * [GlideRecord - addQuery(String name, Object operator, Object value)](https://www.servicenow.com/docs/access?context=c_GlideRecordAPI&version=yokohama&pubname=yokohama-api-reference&section=r_GlideRecord-AddQuery_String_Object_Object&ft:locale=en-US)
  * [GlideRecord - getDisplayValue(String name)](https://www.servicenow.com/docs/access?context=c_GlideRecordAPI&version=yokohama&pubname=yokohama-api-reference&section=r_GlideRecord-getDisplayValue&ft:locale=en-US)
  * [GlideRecord - getDynamicAttribute(String fullPath)](https://www.servicenow.com/docs/access?context=c_GlideRecordAPI&version=yokohama&pubname=yokohama-api-reference&section=GR-getDynamicAttribute_S&ft:locale=en-US)
  * [GlideRecord - getDynamicAttribute(String dynamicAttributeField, String groupAttrPath)](https://www.servicenow.com/docs/access?context=c_GlideRecordAPI&version=yokohama&pubname=yokohama-api-reference&section=GR-getDynamicAttribute_S_S&ft:locale=en-US)
  * [GlideRecord - getDynamicAttributeDisplayValue(String fullPath)](https://www.servicenow.com/docs/access?context=c_GlideRecordAPI&version=yokohama&pubname=yokohama-api-reference&section=GR-getDynAttributeDisplayValue_S&ft:locale=en-US)
  * [GlideRecord - getDynamicAttributeDisplayValue(String dynamicAttributeField, String groupAttrPath)](https://www.servicenow.com/docs/access?context=c_GlideRecordAPI&version=yokohama&pubname=yokohama-api-reference&section=GR-getDynAttributeDisplayValue_S_S&ft:locale=en-US)
  * [GlideRecord - getDynamicAttributeValue(String fullPath)](https://www.servicenow.com/docs/access?context=c_GlideRecordAPI&version=yokohama&pubname=yokohama-api-reference&section=GR-getDynamicAttributeValue_S&ft:locale=en-US)
  * [GlideRecord - getDynamicAttributeValue(String dynamicAttributeField, String groupAttrPath)](https://www.servicenow.com/docs/access?context=c_GlideRecordAPI&version=yokohama&pubname=yokohama-api-reference&section=GR-getDynamicAttributeValue_S_S&ft:locale=en-US)
  * [GlideRecord - getValue(String fieldName)](https://www.servicenow.com/docs/access?context=c_GlideRecordAPI&version=yokohama&pubname=yokohama-api-reference&section=r_GlideRecord-getValue_String&ft:locale=en-US)
  * [GlideRecord - orderBy(String fieldName)](https://www.servicenow.com/docs/access?context=c_GlideRecordAPI&version=yokohama&pubname=yokohama-api-reference&section=r_GlideRecord-orderBy_String&ft:locale=en-US)
  * [GlideRecord - orderByDesc(String fieldName)](https://www.servicenow.com/docs/access?context=c_GlideRecordAPI&version=yokohama&pubname=yokohama-api-reference&section=r_GlideRecord-orderByDesc_String&ft:locale=en-US)
  * [GlideRecord - setDisplayValue(String name, Object value)](https://www.servicenow.com/docs/access?context=c_GlideRecordAPI&version=yokohama&pubname=yokohama-api-reference&section=r_GlideRecord-setDisplayValue_String_Object&ft:locale=en-US)
  * [GlideRecord - setDynamicAttributeDisplayValue(String fullPath, Object value)](https://www.servicenow.com/docs/access?context=c_GlideRecordAPI&version=yokohama&pubname=yokohama-api-reference&section=GR-setDynAttributeDisplayValue_S_O&ft:locale=en-US)
  * [GlideRecord - setDynamicAttributeDisplayValue(String dynamicAttributeField, String groupAttrPath, Object value)](https://www.servicenow.com/docs/access?context=c_GlideRecordAPI&version=yokohama&pubname=yokohama-api-reference&section=GR-setDynAttributeDisplayValue_S_S_O&ft:locale=en-US)
  * [GlideRecord - setDynamicAttributeValue(String fullPath, Object value)](https://www.servicenow.com/docs/access?context=c_GlideRecordAPI&version=yokohama&pubname=yokohama-api-reference&section=GR-setDynamicAttributeValue_S_O&ft:locale=en-US)
  * [GlideRecord - setDynamicAttributeValue(String dynamicAttributeField, String groupAttrPath, Object value)](https://www.servicenow.com/docs/access?context=c_GlideRecordAPI&version=yokohama&pubname=yokohama-api-reference&section=GR-setDynamicAttributeValue_S_S_O&ft:locale=en-US)
  * [GlideRecord - setDynamicAttributeValues(String dynamicAttributeField, GlideDynamicAttributeStore values)](https://www.servicenow.com/docs/access?context=c_GlideRecordAPI&version=yokohama&pubname=yokohama-api-reference&section=GR-setDynAttributeValues_S_O&ft:locale=en-US)
  * [GlideRecord - setValue(String name, Object value)](https://www.servicenow.com/docs/access?context=c_GlideRecordAPI&version=yokohama&pubname=yokohama-api-reference&section=r_GlideRecord-setValue_String_Object&ft:locale=en-US)
{#dynamic-schema__ul_cw2_cbm_bcc}

