---
sourceDocument: Yokohama Now Plattformverwaltung
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/de-DE/yokohama/platform-administration

 Release :

    - yokohama

ft:locale :

    - de-DE

ft:publication_title :

    - Yokohama Now Plattformverwaltung

ft:clusterId :

    - platadm

bundleId :

    - platadm

workflow :

    - Platform


---

# Dynamisches Schema

# Dynamisches Schema {#ariaid-title1}

* Freigeben Version: Yokohama
* 
* Aktualisiert 30. Januar 2025
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 2 Minuten Lesedauer

Definieren Sie eine Hierarchie von Kategorien, Gruppen und Attributen, und ermöglichen Sie Anwendern, Attributgruppen für einen Datensatz auszuwählen.

## Wichtige Vorteile {#dynamic-schema__section_x1y_px3_1bc}

* Organisieren und definieren Sie Metadaten in einem flexiblen Schema, anstatt einer Tabelle neue Spalten hinzuzufügen.
* Definieren Sie ein strukturiertes Framework für die Gruppierung dynamischer Attribute.
* Erfassen Sie Daten dynamisch mit verschiedenen Attributen pro Datensatz.
{#dynamic-schema__ul_gcm_qx3_1bc}

## Dynamischer Schema-Workflow {#dynamic-schema__section_cwh_5x3_1bc}

1. Planen Sie Ihre Metadatenstrategie.
2. Erstellen Sie Gruppen von Attributen.
3. Fügen Sie jeder Gruppe dynamische Attribute hinzu.
4. Organisieren Sie Ihre Gruppen in Kategorien.
5. Fügen Sie Ihren Tabellen dynamische Attributspeicherfelder hinzu.
6. Füllen Sie dynamische Attributspeicher-Felder mit aus GlideRecord-Sollwert() Methode.
{#dynamic-schema__ol_lt3_xx3_1bc}

## Anwendungsfälle {#dynamic-schema__section_r3d_wx3_1bc}

* Erfassen Sie Gruppen von Attribut-Wert-Paaren, die Produkte beschreiben, die in einem großen Kaufhaus verkauft werden, indem Sie ein dynamisches Schema für Ihre Produkte definieren. Speichern Sie die Attribute und ihre Daten in einem dynamischen Attributspeicherfeld.Angenommen, Sie haben eine anwenderdefinierte Produkttabelle, in der Datensätze für verschiedene Arten von Produkten wie Fernseher, Sonnenschutzmittel, Kissen und Hemden gespeichert werden. Sie können Gruppen dynamischer Attribute für jeden Produkttyp erstellen (z. B. Bildschirmtyp, UPC, Farbe oder Größe). Sie können die Gruppen in dynamische Kategorien organisieren (z. B. Elektronik, Gesundheit und Schönheit, Haushaltswaren und Kleidung). Anwender können Ihrer Produkttabelle Datensätze hinzufügen und verschiedene Attribute in jedem Produktdatensatz erfassen.

* Beschreiben Sie einen Datensatz, indem Sie ein oder mehrere dynamische Attribut-Wert-Paare als Zeichenfolgenobjekte in einem dynamischen Attributspeicherfeld erfassen. Sie können auch flüchtige Attribut-Wert-Paare in einem Datensatz erfassen, indem Sie einer Tabelle ein dynamisches Attributspeicherfeld hinzufügen und das Feld mit Zeichenfolgendaten mit ausfüllen GlideRecord API.
{#dynamic-schema__ul_tp3_g3w_jbc}

## APIs {#dynamic-schema__section_kwh_1bm_bcc}

Das dynamische Schema bietet auch globale APIs, mit denen Sie mithilfe von JavaScripts auf dynamische Attribute in Ihren Tabellen zugreifen und diese verwalten können. Im Folgenden werden die APIs und Methoden aufgeführt, die dynamische Attribute unterstützen.

* [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)

  Nur die folgenden GlideAggregat Methoden unterstützen die Verwendung dynamischer Attribute:
  * [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 - getDynamicAttributeValue(String fullPath)](https://www.servicenow.com/docs/access?context=c_GlideAggregateAPI&version=yokohama&pubname=yokohama-api-reference&section=GA-getDynamicAttributeValue_S&ft:locale=en-US)
  * [GlideAggregate - getDynamicAttributeValue(String dynamicAttributeField, String groupAttrPath)](https://www.servicenow.com/docs/access?context=c_GlideAggregateAPI&version=yokohama&pubname=yokohama-api-reference&section=GA-getDynamicAttributeValue_S_S&ft:locale=en-US)
  * [GlideAggregate - getDynamicAttributeDisplayValue(String fullPath)](https://www.servicenow.com/docs/access?context=c_GlideAggregateAPI&version=yokohama&pubname=yokohama-api-reference&section=GA-getDynAttributeDisplayValue_S&ft:locale=en-US)
  * [GlideAggregate - getDynamicAttributeDisplayValue(String dynamicAttributeField, String groupAttrPath)](https://www.servicenow.com/docs/access?context=c_GlideAggregateAPI&version=yokohama&pubname=yokohama-api-reference&section=GA-getDynAttributeDisplayValue_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)

  Nur die folgenden GlideRecord Methoden unterstützen dynamische Attribute:
  * [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)GetDynamicAttributeValue (Zeichenfolge vollständiger Pfad)
  * [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}

