DynamicSchemaAPI - Global

  • リリースバージョン: Australia
  • 更新日 2026年03月12日
  • 所要時間:7分
  • The DynamicSchemaAPI provides methods to clear the various caches used by the dynamic schema implementation.

    You must have the dynamic_schema_writer role to execute any of the clear() methods.

    注:
    You shouldn't need to call the clear() methods in a production environment. Use these methods when you are troubleshooting your implementation if you think there is a possible caching problem causing stale data.

    See also Dynamic Schema.

    DynamicSchemaAPI - clearDynamicCategoryCache()

    Clears the entire dynamic category cache (DynamicCategoryCache).

    DynamicCategoryCache is the internal in-memory cache of all dynamic categories. If you observe issues with stale category data, use this method to clear the cache.

    表 : 1. Parameters
    Name Type Description
    None
    表 : 2. Returns
    Type Description
    None

    The following code example shows how to call this method.

    var api = DynamicSchemaAPI.get();
    api.clearDynamicCategoryCache();

    DynamicSchemaAPI - clearDynamicChoiceSetCache()

    Clears the entire dynamic choice set cache (DynamicChoiceSets).

    DynamicChoiceSets is the internal in-memory cache of all dynamic choice sets. If you observe issues with stale choice sets data, use this method to clear the cache.

    表 : 3. Parameters
    Name Type Description
    None
    表 : 4. Returns
    Type Description
    None

    The following code example shows how to call this method.

    var api = DynamicSchemaAPI.get(); 
    api.clearDynamicChoiceSetCache();

    DynamicSchemaAPI - clearDynamicAttributeGroupCache()

    Clears the DynamicAttributeGroups and DynamicAttributes caches.

    These are internal in-memory caches that contain the attribute and attribute group data. If you observe issues with stale attribute or group data, use this method to clear the cache.

    表 : 5. Parameters
    Name Type Description
    None
    表 : 6. Returns
    Type Description
    None

    The following code example shows how to call this method.

    var api = DynamicSchemaAPI.get(); 
    api.clearDynamicAttributeGroupCache();

    DynamicSchemaAPI - clearDynamicAttributeGroupCacheItem(String sysId)

    Clears the specified dynamic attribute group from the DynamicAttributeGroup cache.

    If you observe issues with stale data for a specific attribute group, use this method to clear the group's cache.

    表 : 7. Parameters
    Name Type Description
    sysId String Sys_id of the attribute group to clear from the cache.

    Table: Dynamic Attribute Group [dynamic_attribute_group]

    表 : 8. Returns
    Type Description
    None

    The following code example shows how to call this method.

    var api = DynamicSchemaAPI.get(); 
    api.clearDynamicAttributeGroupCacheItem(sysId);

    DynamicSchemaAPI - clearDynamicCategoryCacheItem(String sysId)

    Clears a specified dynamic schema category from the DynamicCategoryCache.

    DynamicCategoryCache is the internal in-memory cache of all dynamic categories. If you observe issues with stale category data for a specific category, use this method to clear that category's cache.

    表 : 9. Parameters
    Name Type Description
    sysId String Sys_id of the category to clear from the cache.

    Table: Dynamic Category [dynamic_category]

    表 : 10. Returns
    Type Description
    None

    The following code example shows how to call this method.

    var api = DynamicSchemaAPI.get(); 
    api.clearDynamicCategoryCacheItem(sysId);

    DynamicSchemaAPI - clearDynamicChoiceSetItem(String sysId)

    Clears a specified dynamic schema choice set from the DynamicChoiceSets cache.

    DynamicChoiceSets is the internal in-memory cache for all dynamic choice sets. If you observe an issue with stale data for a specific choice set, use this method to clear that choice set's cache.

    表 : 11. Parameters
    Name Type Description
    sysId String Sys_id of the choice set to clear from the cache.

    Table: Dynamic Choice Set [dynamic_choice_set]

    表 : 12. Returns
    Type Description
    None

    The following code example shows how to call this method.

    var api = DynamicSchemaAPI.get(); 
    api.clearDynamicChoiceSetItem(sysId); 

    DynamicSchemaAPI - get()

    Returns the DynamicSchemaAPI singleton.

    You must call this method prior to calling any other DynamicSchemaAPI method.

    表 : 13. Parameters
    Name Type Description
    None
    表 : 14. Returns
    Type Description
    None

    The following code example shows how to call this method.

    var api = DynamicSchemaAPI.get();