---
schema_version: "1"
id: 650ee3fc7c498bca2e9b5b6ef54aebc6fb4afb693c871a9fe8888b0c263b7684
title: Create Dependent Templates
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/analytics/bi_dev_guide_wave_templates/guides/concept/bi-templatesdev-create-dependency.md
canonical_url: https://developer.salesforce.com/docs/analytics/bi-dev-guide-wave-templates/guide/bi-templatesdev-create-dependency.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: de281a4ac88f6b1857f429da7a987c8fe58d6fcb22696ad173a9394dccda1407
products:
  - Analytics Templates Developer Guide
  - analytics
---

# Create Dependent Templates

Follow these steps to create templates with dependencies.

1.  Create supporting app template. Supporting apps’ dashboards, lenses, and datasets can be reused by other apps.
2.  Add a line to your dependent app templates’ `template-info.json` file that refers to templates to include in the dependency:

    ```nolang
    "templateDependencies" : [{
          "name" : "<Template_A_devname>",
          "namespace" : "<Template_A_mynamespace>",
          "templateVersion" : "1.0",
          // optional condition in which to include this dependency.
          "condition" : "${Variables.dependOnAnotherTemplate}"
        }]

    ```

3.  In your templatized asset JSON files (`dashboard.json` and so on) based on the dependent template, use the supporting app’s assets in context with the following:

    ```nolang
    ${Apps.<templatename>.<Dashboards|Lenses|Datasets>.<assetSourceName>.<Name|Label|Alias|Id>}:
    ```

    Examples:

    ```nolang
    "${Apps.namespacedone__SupportingDashboard.Dashboards.Comparision_tp.Name}"
    	"${Apps.namespacedone__SupportingDashboard.Datasets.MyDataset.Alias}"

    ```

4.  Load all templates into the same org.
5.  Create apps from the supporting templates.
6.  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.
