ExperienceBundle is the text-based metadata representation of an Experience Builder site's settings, pages, layouts, branding, themes, and audience-dependent variations. It defines the site's presentation and navigation structure, including nested component configuration, rather than merely identifying the site.
A bundle contains related JSON resources in brandingSets, config, routes, themes, variations, and views. These are bundled definitions, not independently deployable metadata types. Do not assume that every Lightning Web Runtime (LWR) site uses this representation; enhanced LWR sites can use DigitalExperienceBundle instead.
Key Elements
Only the first four rows below describe top-level bundle fields. The remaining rows describe properties inside the bundled JSON resources. Internal resources are connected by UUIDs, or universally unique identifiers.
| Element | What the Element Controls |
|---|---|
label |
Required name of the ExperienceBundle. |
type |
Required site kind. Only ChatterNetworkPicasso is supported. Other values in the shared SiteType enumeration do not establish support. |
urlPathPrefix |
The site's URL path prefix. Aura paths end in /s; the preceding portion must match the Network URL. LWR sites can use a nonconflicting path without /s. |
experienceResources |
The bundled resources. Each resource has a fileName, format, source, and resource type. Only JSON format is allowed; source carries that JSON as base64 in API transport. |
mainAppPageId, loginAppPageId
|
Identify the main and login single-page applications. The main application is required; login configuration depends on the site's template. |
isAvailableToGuests, authenticationType
|
Site-level guest access. Aura uses isAvailableToGuests, defaulting to false. LWR uses AUTHENTICATED or AUTHENTICATED_WITH_PUBLIC_ACCESS_ENABLED for authenticated sites without or with guest access. |
pageAccess |
Route-level access: UseParent, Public, or RequiresLogin. The default, UseParent, inherits the site's public/private status. |
currentThemeId, activeBrandingSetId, layouts
|
Connect an app page to its theme, the theme to its active branding set, and theme layout types to view UUIDs. Login and Inner layouts are required. |
routeType, viewType, devName
|
A route's routeType must be unique within its single-page application and match the associated view's viewType. devName is the route's unique API name. |
componentName, regionName
|
Identify layout or embedded components and the regions they expose. Region names must match the layout component's design attributes. |
brandingSetType |
Required for LWR branding sets: APP applies site-wide and permits only one such set; SCOPED applies to a section. A set's type cannot be changed. Not applicable to Aura sites. |
developerName |
For a variation, the immutable name used by the Personalization API's targetValue. The JSON filename base must match it. |
componentVariants, propertyOverrides
|
A variation allows one component variant, and its override map allows one entry: activeBrandingSetId, activeViewId, isVisible, or componentAttributes. |
isLockerServiceEnabled, isRelaxedCSPLevel, trustedSitesForScript
|
Separate controls for Lightning Locker, app-page script restrictions, and allowlisted script sources. An allowlist entry takes effect only when its isActive is true. |
renderPriority, isProgressiveRenderingEnabled
|
Component display prioritization. HIGHEST, HIGH, and NEUTRAL are evaluated only when progressive rendering is enabled. |
Behavior and Constraints
Supported sites and enablement
ExperienceBundle supports Experience Builder sites with type = ChatterNetworkPicasso. The shared enumeration also exposes ChatterNetwork, Siteforce, and Visualforce, but those values are not valid choices for this type.
For Aura-based sites, enable Enable ExperienceBundle Metadata API in Setup under Digital Experiences - Settings. LWR sites that use this metadata representation use it by default. Enhanced LWR sites require a separate check of the metadata family, as described under Reported Issues.
Access and script security
Read site access and route access together. For Aura, isAvailableToGuests controls public access and defaults to false. For LWR, AUTHENTICATED requires login, while AUTHENTICATED_WITH_PUBLIC_ACCESS_ENABLED permits guest access while retaining authentication support.
A route's pageAccess can inherit the site setting, allow public access, or require login. Some routes are always private and do not expose this setting for editing in the user interface. Templates without login support, such as Help Center, do not support loginAppPageId, selfRegistrationRouteId, or forgotPasswordRouteId.
Script settings operate at different scopes:
- Site configuration uses
isLockerServiceEnabledto enable or disable Lightning Locker. Its default istrue. - Each applicable main or login app page uses
isRelaxedCSPLevelto control script execution and script access to third-party hosts. Its default isfalse. CSP means Content Security Policy, the restrictions applied to executable content and its sources. - Site-level
trustedSitesForScriptentries identify allowlisted sources throughtrustedSiteUrl. Each entry'sisActivedefaults tofalse; inactive entries are not treated as allowlisted sources.
These controls are separate from component visibility and audience targeting. A visible component or audience-specific page variation does not grant a visitor access to the underlying data.
Resource integrity
The bundle is a connected set of resources, not a collection of unrelated page files. A single-page application (SPA) loads one HTML page and changes its displayed views as the visitor interacts with it.
- Site configuration identifies the main SPA through
mainAppPageIdand, where supported, the login SPA throughloginAppPageId. - Each
appPageselects a theme throughcurrentThemeId. The theme selects a branding set throughactiveBrandingSetIdand maps layout types to view UUIDs throughlayouts. - Routes and views belong to an SPA through
appPageId. A route'sactiveViewIdselects the default view when no audiences exist or the visitor matches none. - A route's
routeTypemust be unique among routes sharing the same SPA and match the associated view'sviewType. - Views contain regions, which contain nested regions or components. Themes can also contain views with this same structure.
A view's componentName is the fully qualified layout component name, including its namespace. The component must implement forceCommunity:layout, or forceCommunity:themeLayout for theme layouts. Each regionName must match a design attribute in that layout component. Embedded components must be available for use in the Experience Builder component panel.
Do not edit route configurationTags. It is internal configuration even though retrieval serializes it into JSON.
Internal UUIDs are not Salesforce record IDs stored in individual component attributes. When adding a component, its id can initially contain any value because deployment generates a component UUID. This rule applies to added components; it does not authorize replacing route, theme, or other resource identifiers arbitrarily.
Branding and themes
The branding set selected by a theme's activeBrandingSetId must have a definitionName matching the theme's brandingSetReference. The combination of a branding set's definitionName and label must be unique across the org.
For LWR, brandingSetType is required and cannot be changed after the set is defined. Only one branding set can use APP; section-specific sets use SCOPED. A community_layout:section component identifies its section's branding set through scopedBrandingSetID. These properties do not apply to Aura sites.
Audience-dependent variations
A variation overrides default presentation for a targeted audience. Its developerName cannot be changed after it is set, and the JSON filename base must match that name. A mismatch can cause problems on repeated deployments.
Each variation permits only one entry in componentVariants. That entry's targetId identifies the theme, route, or component being overridden, not the audience. Audience targeting is associated separately through Audience and personalization configuration.
Each propertyOverrides map permits only one entry:
-
activeBrandingSetIdselects another branding set when the target is a theme. -
activeViewIdselects another page view when the target is a route. -
isVisiblechanges component visibility, but is not supported for components in header or footer regions. -
componentAttributesvaries attributes only for CMS Collection components and navigation components such as Navigation Menu or Tile Menu. These attribute variations can apply in headers, footers, or the view body.
The componentAttributes object contains one supported attribute. Navigation variations use NavigationMenuEditorRefresh to identify a navigation linkset. CMS Collection variations use config/dataProviderDefinition/attributes/dataProviderInfo/apiName to identify a content collection. A component can vary visibility or attributes, but not both together.
Languages, rendering, and page metadata
Each language's isActive controls whether it appears in the site's language selector; its default is true. fallbackLanguageId identifies the language supplying content when the selected language has none. LWR permits one fallback level, except that a chain can terminate at the site's default language. For a site whose default is English, Spanish to French to English is allowed; Spanish to French to another nondefault language is not.
Component renderPriority is evaluated only when site-level isProgressiveRenderingEnabled is enabled. Progressive rendering defaults to disabled. This setting prioritizes display, not execution order.
Each view contains sfdcHiddenRegion with a search engine optimization (SEO) assistant component: forceCommunity:seoAssistant for Aura or community_builder:seoAssistant for LWR. The component is not visible on the rendered page. Only customHeadTags, description, and pageTitle are editable SEO assistant properties.
App-page headMarkup adds custom markup to the site's main HTML head. App-page cmsSettings configures CMS Connect headers and footers.
Deployment and Retrieval
Retrieved resources use the .json suffix under experiences, with a separate folder for each site and subfolders for the resource categories. The editable content is JSON; base64 applies to ExperienceResource.source in API transport, not to the files an admin edits.
The manifest supports the * wildcard for ExperienceBundle. When deploying an Experience Builder site with ExperienceBundle, do not include SiteDotCom in the manifest. ExperienceBundle does not support retrieving with one Metadata API version and deploying with a different one.
For Aura sites, urlPathPrefix ends in /s, and the portion before /s must match the Network metadata URL. LWR sites can use a nonconflicting path without /s; do not apply the Aura convention to every LWR site. Matching site names do not, by themselves, establish that source and target paths match.
Preserve the connections between routes, views, app pages, themes, and branding sets. A matching routeType and viewType does not establish that the corresponding view is included in a deployment. Likewise, an invalid-ID diagnosis must distinguish internal resource UUIDs from record IDs inside component attributes. The conditional reports below illustrate both cases.
To retrieve app-page cmsSettings, both source and target orgs must have the CMSConnect and CMSPersonalization org permissions enabled.
Relationships
Important connections are embedded in resource JSON rather than exposed as top-level ExperienceBundle fields. Internal references between themes, routes, views, and branding sets remain within the bundle; those resources are not separate metadata types.
References
The following are name-based references carried by JSON properties:
-
CustomObject: routeobjectApiNameidentifies a custom object's API name. This property is not available for standard objects. -
NavigationMenu: variationcomponentAttributescan useNavigationMenuEditorRefreshto identify a navigation linkset. -
ContentAsset: native navigationmenuItemsuseiconAssetto name an asset. Each item'stargetUrlis a relative destination URL.
componentName identifies external layout or component definitions. CMS Collection attribute variations identify content collections through their supported attribute path. Do not infer navigation menu definitions from object-page views.
Separate associations: Network is associated through the site's URL path, including the Aura prefix-matching constraint. Audience and personalization configuration associate audiences with variations; the Personalization API uses the variation's developerName as targetValue. These associations are distinct from a variation's internal targetId.
Documentation Inconsistencies
-
variationsis documented as a supported resource category and has its own folder definition, but it is omitted from the valid-value list forExperienceResource.type. - The nested
componentVariant.typeproperty definition listsexperienceVariationas its supported value, while the JSON examples usecomponentVariant. The containing variation usesexperienceVariation.
Reported Issues
-
An enhanced LWR site may require DigitalExperienceBundle retrieval. In January 2024, an admin reported that ExperienceBundle did not retrieve an enhanced LWR site, while
DigitalExperienceBundledid. Check the site's metadata family rather than assuming all LWR sites use ExperienceBundle. Enhanced LWR retrieval discussion. -
Navigation definitions may be outside the retrieved page views. In a January 2022 Partner Central discussion, navigation menus were identified as separate
NavigationMenumetadata in thenavigationMenusfolder, alongsideexperiences, rather than definitions contained in object-page views. Navigation menu location discussion. - A URL-prefix rejection can result from different source and target paths. In February 2024, a sandbox-to-production deployment failed even though the sites had matching names. The production site lacked the sandbox site's URL path; aligning those paths resolved deployment. URL path mismatch report.
-
A routeType error can indicate an omitted view. In an August 2023 Pipeline Inspection report, deployment failed despite matching
routeTypeandviewType. Including the corresponding view resource resolved the failure. Missing Pipeline Inspection view report. -
An invalid-ID failure can originate in a component attribute, even on deployment back to the source org. In May 2021, a record-list report found that retrieval populated
filterNamewith a Salesforce ID. Replacing that value with the filter name allowed deployment, but later retrieval restored the ID. This was a component-specific report, not a rule to replace every ID or routinely rewrite retrieved bundles. Record-list filter ID report.
Common Questions
Why doesn't ExperienceBundle retrieve my LWR site?
Not every LWR site uses ExperienceBundle. Enhanced LWR sites can use DigitalExperienceBundle; a reported retrieval succeeded with that type when ExperienceBundle returned nothing.
Can I include SiteDotCom and ExperienceBundle in the same deployment?
Do not include SiteDotCom in the manifest when deploying an Experience Builder site with ExperienceBundle.
Why is urlPathPrefix rejected when the site names match?
Site names and URL paths are different settings. Compare the source and target paths. For Aura, the prefix ends in /s, and the preceding portion must match the Network URL. Do not add /s indiscriminately to LWR paths.
Why do I get a routeType error when routeType and viewType match?
The associated view may be missing from the deployment. Check that the view resource is included, that the route points to it, and that routeType remains unique within the SPA.
Should I replace IDs in a retrieved ExperienceBundle?
Do not replace IDs indiscriminately. Internal UUIDs connect bundle resources, while component attributes can contain Salesforce record IDs. A reported record-list issue required a filter name instead of the retrieved ID in filterName, but that workaround was specific to the component.