AppFrameworkApp represents an installed app framework app. It records the installation template, the template's version and classification, and an inventory of the app's installed assets. It describes the installed app, not the reusable template definition.
The installed-asset inventory is also distinct from the assets themselves. For example, dashboard and workspace entries identify associated assets; they do not contain dashboard or workspace definitions.
Key Elements
| Element | What the Element Controls |
|---|---|
fullName |
Identifies the metadata component. Inherited from Metadata; distinct from the app's label. |
label |
Required label for the app. |
appTemplate |
Name of the template used to install the app. |
templateVersion |
Version of the installation template. This is not an asset API version. |
templateType |
Classification of the installation template. Documented values include App and Component, but Salesforce's example uses APP. See Documentation Inconsistencies. |
templateSubType |
Template subtype. Documented values include Tableau, DataCloud, AgentforceAnalytics, Flow, Dashboard, Visualization, SemanticModel, Metric, and Extension. An alternate exposed schema spells this element templateSubtype. |
appAssetVersion |
API version of the app's assets, stored as a double. |
installedAssets |
One or more nested AppFrameworkInstalledAsset entries describing the assets associated with the app. |
installedAssets.asset |
Required name of the installed asset. |
installedAssets.templateAssetSourceName |
Required name of the template used to install that individual asset. This is separate from the app-level appTemplate. |
installedAssets.type |
Classification of the installed asset. Documented values include Dashboard and Workspace. |
installedAssets.appAssetVersion |
API version of the individual installed asset, stored as a double. |
Behavior and Constraints
An app has one or more installedAssets entries. Each entry requires both asset and templateAssetSourceName. The app itself requires label.
Keep installation information at the app and asset levels separate. appTemplate names the template used to install the app, while each asset's templateAssetSourceName identifies the template used to install that asset. They are distinct fields with different scopes.
The version fields also have different meanings:
-
templateVersionrecords the installation template's version. - The app-level
appAssetVersionrecords the API version of the app's assets. - Each
installedAssets.appAssetVersionrecords the API version of that individual asset.
An asset's type classifies the inventory entry. Setting it to Dashboard or Workspace does not embed the corresponding asset definition in the app.
Deployment and Retrieval
AppFrameworkApp components use the .appFrameworkApp suffix and are stored in the appFrameworkApps folder. In package.xml, use AppFrameworkApp as the metadata type name and the component's fullName as its member name. The type supports the * wildcard in the manifest.
Determine deployment scope separately for the app and its assets. Salesforce's packaging example includes the AppFrameworkApp component alongside separate dashboard and workspace components. The inventory entries and those asset components are separate metadata definitions.
The example does not establish that deploying AppFrameworkApp alone automatically creates the listed assets. Do not treat an installedAssets entry as a substitute for the associated asset's metadata definition.
Relationships
AppFrameworkInstalledAsset is the nested structure used by installedAssets, not a separate top-level component in the packaging example. The app records asset names and classifications, while the associated assets have their own metadata definitions.
The packaging example shows these name-based asset associations, rather than embedded definitions:
-
AnalyticsDashboard: separate components corresponding toinstalledAssets.assetentries whoseinstalledAssets.typeisDashboard. -
AnalyticsWorkspace: separate components corresponding toinstalledAssets.assetentries whoseinstalledAssets.typeisWorkspace.
Documentation Inconsistencies
-
Template type capitalization: The field definition lists values including
AppandComponent, but Salesforce's XML example serializesAPP. This discrepancy does not confirm thatAppandAPPare interchangeable. -
Template subtype element spelling: Salesforce documentation names the element
templateSubType, while an alternate exposed element schema usestemplateSubtype. Preserve this distinction when interpreting the setting; the two spellings are not consistently documented.
Common Questions
Does deploying AppFrameworkApp also create its dashboards and workspaces?
The installed-asset entries contain names and classifications, not asset definitions. Salesforce's packaging example includes the app and its associated asset components separately; it does not establish automatic asset creation from deploying the app alone.
Where are AppFrameworkApp metadata files stored?
They are stored in the appFrameworkApps folder with the .appFrameworkApp suffix. The manifest type name is AppFrameworkApp, and wildcard selection is supported.
What is the difference between templateVersion and appAssetVersion?
templateVersion identifies the installation template's version. appAssetVersion identifies an asset API version, both at the app level and within each installed-asset entry.
Is AppFrameworkApp the reusable app template?
No. It describes an installed app. appTemplate records the template used to install it, and templateAssetSourceName records the template used to install an individual asset.