See Shared extension models for an overview of extension models.
Syntax
Each extension must use eithermappings (explicit) or map_pattern (programmatic), but not both.
Properties
A list of dynamic extensions to apply to the model. Each extension must specify either
mappings or map_pattern, but not both.Examples
Explicit customer extensions
In this example, users with acustomer_id of blobs_r_us have the blobs_r_us extension model applied; users with mega_blobs have the mega_blobs extension model applied.
Apply per-customer extension models
Localize model by language attribute
In this example, each extension model (model_es, model_fr, model_de) overrides view and field labels with translated values for that language.
Localize the model by language
language attribute set to es or spanish have the model_es extension applied, and so on. Users whose attribute value doesn’t match any entry in a values_for_model list have no extension applied.
Programmatic extensions by department
In this example, the user’sdepartment attribute value is substituted into the pattern to produce the extension model name.
Programmatically apply per-deparment extension models
department: marketing has the marketing_extension model applied; a user with department: sales has sales_extension applied. This avoids enumerating each department explicitly, but requires extension model names to follow a set pattern.
Create a pattern with multiple user attributes
In this example, bothdepartment and region are combined to generate the extension model name.
Combine multiple attributes in the pattern
department: marketing and region: us has the marketing_us_model extension applied. If a user has multiple values for either attribute, all combinations are generated and any matching extension models are applied.
