# 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.<br>

<figure><img src="/files/RPpARG6RNtPGtCOP3wTo" alt=""><figcaption></figcaption></figure>

*Users can search for Offers by Products.*<br>

<figure><img src="/files/il12wqeSm9a8xEgAw1ik" alt=""><figcaption></figcaption></figure>

*Users can search for Offers by Campaigns.*<br>

<figure><img src="/files/vBYIQHoWOCsi14Ccs5kd" alt=""><figcaption></figcaption></figure>

*`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 **Setup** → **Custom Metadata Types** → clickManage Records on **icAssist Config**<br>

   <figure><img src="/files/9FVblNq0Z2ke3KT4U9W1" alt=""><figcaption></figcaption></figure>
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.<br>

   <figure><img src="/files/9ho7z6lZMv7zHLUnl1sD" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.limio.com/integrations/setting-up-limio-for-salesforce/detailed-salesforce-setup/custom-metadata-types/adjust-entries-count.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
