Loading
Feature degradation | Gmail Email delivery failureRead More
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
          Add a Promotion Phase Filter to the Link Tactics Page

          Add a Promotion Phase Filter to the Link Tactics Page

          Go over an example to help you add a promotion phase filter. Use the filter to see tactics for a particular phase of a promotion.

          Required Editions

          Available in: Lightning Experience

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

          User Permissions Needed
          To add a picklist filter to the Link Tactic page: CGCloud Business Admin
          1. Create a query parameter to specify the promotion phases that you want to view in the filter.
          2. Modify the query definition to show promotion phase labels.
            1. In Setup, find and select Custom Metadata Types.
            2. Locate the Query Definitions record and click Manage Records next to it.
            3. Locate Promotion Phase Subquery from the list of records and click Edit next to it.
            4. For Field Columns, enter Phase__c and toLabel(Phase__c) on separate lines.
            5. For the Query Footer, enter GROUP BY Phase__c.
            6. Save your changes.
          3. To add filtering logic for the promotion phases retrieved by the Promotion Phase Subquery, create a query condition.
            1. In Setup, find and select Custom Metadata Types.
            2. Locate the Query Conditions record and click Manage Records next to it.
            3. To create a new query condition record, click New.
            4. For Label, enter Promotion Valid Phases.
            5. For Name, enter Promotion_Valid_Phases.
            6. Select Active.
            7. Use the Query Definition lookup to associate the query condition with the Promotion Phase Subquery query definition.
            8. For Condition Text, enter Phase__c IN ({13}) AND Sales_Org__c = {9}
              Here we retrieve only records where the Phase__c field matches the values specified in the 13th query parameter. This parameter is populated with API names of promotion phases Planning, Committed, and ForApproval. Also, only records associated with the sales organization where Sales_Org__c = 9 are retrieved.
            9. Save your changes.
          4. Configure the Query UI to link the query parameter, query condition, and query definition to the user interface.
           
          Loading
          Salesforce Help | Article