Loading
Connect in real time with the Trailblazer Community in Slack Open BetaRead More
Set Up Trade Promotion Management
Maintain Filters in Manage Products Card

Maintain Filters in Manage Products Card

Add or remove Product filters from the Manage Products Grid. The filters on the Manage Products page use the fields in the criterion information section of a product or product group.

Required Editions

You can configure these Lightning web components:

Available in: Lightning Experience

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

  • Promotion Card - Products
  • Trade Planning

The criterion information fields are static and don't change over time. Regularly review and update these fields, along with the product level field and make sure that they align with the product hierarchy.

Note
Note If you make changes to the product hierarchy, ensure that the filter criteria that you use on the manage products screen align with the new hierarchy levels.
Note
Note You can’t add formula fields as filters in the Manage Products card.
Note
Note The Manage Products filter excludes categories assigned to newly created and activated product managers. This restriction applies to existing promotions and new promotions created through copy, push, or derive processes.
  1. From Setup, go to Object Manager, and then find and select Product.
  2. Click Field Sets, and then go to or create the FilterCriteria field set.
    • If you want the new field in all sales orgs, use the cgcloud_FilterCriteria field set.
    • If you want the new field in a specific sales org, use the FilterCriteria_<sales org name> field set.
  3. Add the relevant fields for your filter.
    The Description (Description_1__c) and Product Level (Product_Level__c) fields are already internally used by the system.
  4. Go to Setup | Custom Settings | System Setting, and then locate or create the relevant Product_FilterCriteria record to add to your Product2 field name.
    Note
    Note Each Product_FilterCriteria record name must end with a sequence number from _1 through _99. Use one of these formats:
    • For all sales orgs: Product_FilterCriteria_<N>

      For example, Product_FilterCriteria_1

    • For a specific sales org: Product_FilterCriteria_<sales org>_<N>

      For example, Product_FilterCriteria_0001_1 where <sales org> is 1–4 alphanumeric characters and <N> is a number from 1 through 99.

    If the sequence number is missing, the Update Product Filter Cache (REFRESHPRODUCTCACHE) process fails with error INCACHE0020: Wrong FilterCriteriaName.

    Note
    Note Add all fields that you add into the field set to the Product_FilterCriteria_<x>System Setting records. Ensure that the fields that you add or remove from the FilterCriteria_<x> field set are also added or removed from the Product_FilterCriteria_<x> records.
  5. Go to the Salesforce Data Sync tab, select System Settings from the dropdown, and then click Sync.

    Wait for the SFDataSyncWorker process to complete. You can monitor the status from the Batch Run Status tab.

  6. Go to Promotion Templates, and then click Update Product Filter Cache.
    Wait for the REFRESHPRODUCTCACHE process to complete. You can monitor the process status on the Batch Run Status record.
  7. To view the new filter on the Manage Products page, click Add more filters.
  8. If you want to show your new filter, in Lightning Page Builder, on the component instance, modify the Products Grid Fixed Filters design property.
    This property is a JSON array that uses the ordered list of Product2 SObject fields to filter:
    [
      "criterion_1_product__c",
      "criterion_3_product__c",
      "pack_size__c",
      "container_size__c"
    ]

    Ensure that the fields:

    • Specify cgcloud fields without namespaces.
    • Have field names in lowercase.
    • Are included in the relevant FilterCriteria field set.
    • Are included in the relevant Product_FilterCriteria system setting.

If the filter doesn't appear on the Manage Products page, make sure that at least one relevant product has data entered in the fields. The product must be accessible to the user and relevant to the promotion.

 
Loading
Salesforce Help | Article