Loading
Scheduled maintenance for Salesforce HelpRead More
CRM Analytics
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Use Parameters to Make Components Dynamic

          Use Parameters to Make Components Dynamic

          Parameters are configurable options that adjust a component's behavior and appearance according to specific requirements or preferences without rebuilding the component.

          Required Editions

          Available in Salesforce Classic and Lightning Experience.
          Available with CRM Analytics, which is available for an extra cost in Enterprise, Performance, and Unlimited Editions. Also available in Developer Edition.
          User Permissions Needed
          To create a parameter: Create and Edit Analytics Dashboards

          Watch a Demo: Watch Video Demo Get Multiple Use Cases With Components Using Parameters

          Parameters enhance component reusability by providing benefits that include customization options, flexibility to handle different scenarios, and configurability. By using parameters effectively, components become versatile and adaptable building blocks that can be reused across various projects and contexts, saving development time and effort.

          BenefitDescription
          Customization Parameters provide a way to customize the behavior and appearance of a component. By defining parameters for various aspects of a component, such as format changes or query options, you can make the component more adaptable to different use cases. Use stakeholder input for these parameters to tailor components to specific business needs without recreating the underlying component.
          Flexibility Parameters allow components to handle different data inputs. For example, a component with a table can have parameters for the column configuration, sort options, and filter criteria. By defining these parameters, the component can be reused with customized configurations making it adaptable to a wide range of scenarios. Parameters can also enable interactions with dashboards, such as passing a dashboard filter selection to a component.
          Configurability Parameters allow dashboard builders to configure components without starting over. By exposing configurable parameters, the component can be easily adjusted to fit specific requirements, promoting reusability across projects without the need for extensive modifications.
          1. To create a parameter, edit an existing component or create one.
          2. Create a widget or select an existing widget in the component.
          3. Click Advanced Editor.
          4. Click the Create Parameter link.
            Create Parameter link.
          5. Add a parameter label, optional description, and a default value that’s used if no other value is found.
            Parameter link with parameter attributes
          6. Click Create. The parameter ID is automatically saved to the clipboard. You can also use the Pasting a parameter to a widget attribute button.
            After a parameter is created it’s now ready to be inserted in the component’s widget and query properties.
          7. Click Close.
          8. Click the Widget and Query tabs and paste the copied parameter to the applicable properties.
            Widget and query tabs
          9. Click Save.
          Example
          Example This component is embedded in multiple sales dashboards that use the same metrics. However, dashboard stakeholders want to see the component presented in different ways, such as grouping the bar chart by province or account owner. This type of request often required recreating the component.
          Component chart with sum of annual revenue grouped by country.

          Instead, you can make the applicable widget and query properties dynamic to enable the desired chart organization.

          Parameter inserted in the chart’s widget properties to support new groupings.
          Note
          Note Use CTRL/CTL+F to locate the values you want to update.
          Parameter inserted in the chart’s query properties to support new groupings.

          The component chart can now accept new field values to group by without recreating the component.

          Component in multiple dashboards with different groupings.
          Note
          Note Parameters only support text and numeric values. When using query fields as text, its case must match the field as it appears in the dataset to be recognized.
          • Parameter Value Type
            Parameters offer a versatile way to reuse components and manage how updates are implemented according to your requirements.
          • Use a Parameter with a Dynamic Value Type
            In this example a parameter is added to enable a dashboard filter to update a component chart by Industry selections.
          • Use a Parameter with a Static Value Type
            In this example a parameter is added to the appropriate widget and query values to update a component chart by different groupings.
          • Use a Parameter to Update a Query
            In this example dashboard stakeholders want the flexibility to add filter values and fields to a single column in a table. This type of request can be complicated because it requires passing data to a portion of a query. However, you can insert a parameter into the column filter to be updated with desired values and fields. The parameter can be set up to work as a static or a dynamic value type.
          • Manage Parameters
            You can edit parameters to make minor adjustments or change for a different use, and delete them when they’re no longer needed.
           
          Loading
          Salesforce Help | Article