---
schema_version: "1"
id: d48a587ad732b05190e6a3c5afabe37cc6c7d7661050de37b41973dfbd0c8b34
title: Edit folder.json
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-edit-folder-json.md
canonical_url: https://developer.salesforce.com/docs/analytics/bi-dev-guide-wave-templates/guide/bi-templatesdev-edit-folder-json.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: db0854a7ca402b5828b0ac2d04a2089598832247c2ba338ba4581e5f49c541ee
products:
  - Analytics Templates Developer Guide
  - analytics
---

# Edit folder.json

The `folder.json` file describes the `featuredAssets` for the application.

**note:** This file is required for embedded apps because it specifies the name and label for the templated app along with setting sharing rules for the app. The embedded app can’t be shared with other users and groups using CRM Analytics Studio.

Template developers can use it to specify the order of the dashboards in the application instead of accepting the default behavior of alphabetizing by dashboard label.

## Example

```nolang
{
    "name": "My Templated App",
    "featuredAssets": {
        "default": {
            "assets": [
                {"id": "${App.Dashboards['ZDashboard'].Id}"},
                {"id": "${App.Dashboards['BDashboard'].Id}"},
                {"id": "${App.Dashboards['ADashboard'].Id}"}
            ]
        }
    },
    "shares": [
        {
            "shareType": "Organization",
            "accessType": "View"
        }
    ]
}
```

The previous example tells the application to display the "ZDashboard" first, as the most prominent dashboard, rather than the default of A, B, then Z. If a dashboard has a conditional attribute in `template-info.json` that resolves so that the dashboard isn’t added at app creation time, a rule must be added to the `template-to-app-rules.json` to remove the dashboard from the `folder.json` file. This rule removes that dashboard entry from the `featuredAssets` list at runtime and prevents app creation from failing with a "Dashboard not found" error. The rule looks like this:

```nolang
{
    "name": "RemoveDashboardZFromFolderJson",
    "condition": "${!Variables.HasDashboardZ}",
    "appliesTo": [
        {
            "type": "folder",
            "name": "*"
        }
    ],
    "actions": [
        {
            "action": "delete",
            "description": "Remove conditional dashboard",
            "path": "$.featuredAssets.default.assets..[?(@.id=~ /^.DashboardZ.$/i)]"
        }
    ]
}
```

**See Also**

- [folder.json Attributes](https://developer.salesforce.com/docs/analytics/bi-dev-guide-wave-templates/reference/bi-templatesdev-folder-json-attributes.md)
