---
schema_version: "1"
id: ab22d3749090449fba501b3b2b577d3174540c6cf5b1ac9472ff66c7c33da527
title: Feature Parameters for Analytics 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-feature-parameters.md
canonical_url: https://developer.salesforce.com/docs/analytics/bi-dev-guide-wave-templates/guide/bi-templatesdev-feature-parameters.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 6acac021ada1529a3eb0668054d06f679fb1477fc450a33ab1bff2fa85044afe
products:
  - Analytics Templates Developer Guide
  - analytics
---

# Feature Parameters for Analytics Templates

Feature parameters are available to control behavior in the template-to-app process for CRM Analytics apps. Feature parameters are defined as metadata that is deployed as part of the managed package. When feature parameters are deployed with the template, the parameter values are set using the LMA application.

For more information on feature parameters, see [Feature Parameter Metadata Types and Customs Objects](https://developer.salesforce.com/docs/atlas.en-us.pkg1_dev.meta/pkg1_dev/fma_types_objects.htm) in the First-Generation Managed Packaging Developer Guide.

For implementation examples, view and clone the [Project Force App](https://github.com/forcedotcom/project-force) in Github.

## Analytics Template Metadata

For Analytics templates, the managed package component is `WaveTemplateBundle`. The template metadata reads feature parameter values set in the LMA application as EL expressions and uses them to control the behavior of app creation. The supported types of feature parameter values are `Boolean`, `Date`, and `Integer`.

## Example

Use an `Integer` Feature Parameter Value in Dashboard Creation

For this example, the feature parameter is deployed using `/featureParameters/FinancingAmount.featureParameterInteger-meta.xml`.

```nolang
<FeatureParameterInteger xmlns="http://soap.sforce.com/2006/04/metadata">
   <dataflowDirection>LmoToSubscriber</dataflowDirection>
   <masterLabel>Amount Financed</masterLabel>
   <value>250000</value>
</FeatureParameterInteger>

```

The feature parameter metadata is referenced in the `template-to-app-rules.json` file:

```json
{
  "constants": [
    {
      "name": "FinancingAmount",
      "value": "${sfdc_fma:checkInteger('[namespace__FinancingAmount')}"
    }
  ],
  "rules": [
    {
      "name": "Use Feature Parameter",
      "appliesTo": [
        {
          "type": "dashboard"
        }
      ],
      "actions": [
        {
          "action": "set",
          "path": "$.state..text_1.parameters.content.displayTemplate",
          "value": "${Constants.FinancingAmount}"
        }
      ]
    }
  ]
}
```
