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.
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:
-
Navigate to Setup β Custom Metadata Types β clickManage Records on icAssist Config
-
Open uiSettings - Filters and click Edit
-
In the Config field add a new Integer property
fetchProductsPageSize
orfetchCampaignsPageSize
, set the required value, and click Save.
Comments
0 comments
Please sign in to leave a comment.