Adjust Number of Product and Campaign Entries

Offer Catalog in LFS allows users to filter offers by a Product or Campaign. The list of results for either filter is fetched from Limio. Depending on the number of Products and Campaigns set up in each environment, fetching all results might exceed the allowed Salesforce memory limit.

Users can search for Offers by Products.

Users can search for Offers by Campaigns.

mceclip2.png

Heap Size Limit Exception in the developer console and Filters failed to load error in the catalog might signal the total amount of entries exceeded the memory limit.

In order to prevent this type of exception, there are two config attributes regulating the number of entries to be fetched:

  • fetchCampaignsPageSize - an integer that specifies the number of Campaigns returned;

  • fetchProductsPageSize - an integer that specifies the number of Products returned;

If no values are specified for those two attributes, the default number of entries returned is 100 for products and 10 for campaigns. These attributes can be adjusted as long as the total size doesn’t exceed the Salesforce limit.

How to specify a custom value:

  1. Navigate to SetupCustom Metadata Types → clickManage Records on icAssist Config

  2. Open uiSettings - Filters and click Edit

  3. In the Config field add a new Integer property fetchProductsPageSize or fetchCampaignsPageSize, set the required value, and click Save.

Last updated

Was this helpful?