GlideDynamicNamespace - Global

  • 릴리스 버전: Australia
  • 업데이트 날짜 2026년 03월 12일
  • 소요 시간: 5분
  • The GlideDynamicNamespace API provides access to dynamic namespace metadata.

    This API provides methods that enable you to get dynamic schema values defined in the Dynamic Namespace [dynamic_namespace] table. For more details on dynamic namespaces, see Dynamic Schema.

    See also:

    GlideDynamicNamespace - getName()

    Gets name of the dynamic namespace.

    표 1. Parameters
    Name Type Description
    None
    표 2. Returns
    Type Description
    String Value of the dynamic namespace's name property.

    The following example shows how to get the name of a dynamic namespace. In this example, the dynamic attribute store field associated with the namespace is u_attributes.

    var gr = new GlideRecord('u_product');
    gr.query();
    gr.next();
    
    gs.info("Dynamic namespace: " + gr.u_attributes.getDynamicNamespace().getName());

    Output:

    Dynamic namespace: u_product/u_attributes

    GlideDynamicNamespace - isActive()

    Returns whether an object is an active dynamic namespace.

    표 3. Parameters
    Name Type Description
    None
    표 4. Returns
    Type Description
    Boolean Flag that indicates if a dynamic namespace is active.
    Valid values:
    • true: The dynamic namespace is active.
    • false: The dynamic namespace is not active.

    The following example shows how to determine if a dynamic namespace called u_product/u_attributes is active. In this example, the dynamic attribute store field associated with the namespace is u_attributes.

    var gr = new GlideRecord('u_product');
    gr.query();
    gr.next();
    
    gs.info("Dynamic namespace: " + gr.u_attributes.getDynamicNamespace().getName());
    gs.info("Active true/false: " + gr.u_attributes.getDynamicNamespace().isActive());

    Output:

    Dynamic namespace: u_product/u_attributes
    Active true/false: false

    GlideDynamicNamespace - isTransient()

    Returns whether an object is a transient dynamic namespace.

    • Dynamic namespaces are defined in the Dynamic Namespace [dynamic_namespace] table with a data type and a sys_id.
    • Transient dynamic namespaces are dynamic namespaces that have been added to a DynamicAttributeStore field without a definition in the Dynamic Namespace [dynamic_namespace] table. Transient dynamic namespaces only contain transient attributes.
    표 5. Parameters
    Name Type Description
    None
    표 6. Returns
    Type Description
    Boolean Flag that indicates if a dynamic namespace is transient.
    Valid values:
    • true: The dynamic namespace is not transient.
    • false: The dynamic namespace is transient.

    The following example shows how to determine if a dynamic namespace called u_product/u_attributes is transient. In this example, the dynamic attribute store field associated with the namespace is u_attributes.

    var gr = new GlideRecord('u_product');
    gr.query();
    gr.next();
    
    gs.info("Dynamic namespace: " + gr.u_attributes.getDynamicNamespace().getName());
    gs.info("Is transient? t/f: " + gr.u_attributes.getDynamicNamespace().isTransient());

    Output:

    Dynamic namespace: u_product/u_attributes
    Is transient? t/f: false