Loading
Set Up Trade Promotion Management
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
          Promotion Filter Variables

          Promotion Filter Variables

          Add promotion filter variables to your TPM Promotion Analytics Dashboard to view the data displayed on your page while you’re editing a promotion.

          Required Editions

          Available in: Lightning Experience

          Available in: Enterprise and Unlimited Editions where Consumer Goods Cloud is enabled

          To reference and display the data available on your promotion page while editing a promotion or tactic, add a "$" before the promotion or tactic attribute in the filter string. In this example, "$Name" references the Name field of the account sObject currently viewed in your promotion.

          {"datasets": {
              "account":[
                  {
                  "fields":["Name"], 
                  "filter": {
                      "operator": "matches", 
                      "values":["$Name"]
                      }
                  }
                  ]
            }
          }

          You can also use these variables to reference other promotion-related data.

          Variable Values Referenced
          $selectedTactic All sObject fields for the selected tactic.
          $effectiveCategories A list of Product2 IDs representing the Categories of the currently promoted products.
          $effectiveBrands A list of Product2 IDs representing the Brands of the currently promoted products.
          $tactics For each tactic record field, a list of all the values present in all tactics of the promotion.
          $activeTactics For each included tactic record field, a list of all the values present in all tactics of the promotion.
          $tacticFunds For each Tactic Fund record field, a list of all the values present in all tactic funds of the promotion.
          $categories A list of Product2 IDs representing the available categories of the promotion.
          $subAccounts A list of Account External IDs representing the subaccounts of the promotion.
          $participatingCustomers A list of Account External IDs representing the participating customers of the promotion.
           
          Loading
          Salesforce Help | Article