Create Dependent Templates
Follow these steps to create templates with dependencies.
-
Create supporting app template. Supporting apps’ dashboards, lenses, and datasets can be reused by other apps.
-
Add a line to your dependent app templates’
template-info.jsonfile that refers to templates to include in the dependency: -
In your templatized asset JSON files (
dashboard.jsonand so on) based on the dependent template, use the supporting app’s assets in context with the following:Examples:
-
Load all templates into the same org.
-
Create apps from the supporting templates.
-
Create the app from the dependent template. The requirements for creating a dependent app are:
- The supporting app templates must exist in the org, and the user creating the dependent app must have access to them.
- At least one app from the supporting template at the right version and namespace must exist and have a Completed status.