> For the complete documentation index, see [llms.txt](https://docs.limio.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.limio.com/salesforce/setting-up/detailed-salesforce-setup/custom-metadata-types/adjust-entries-count.md).

# Product & 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="https://284256719-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUgE12kxtw8dDbuEZGzbI%2Fuploads%2Fgit-blob-f28016278c43160728cff49c3d7700a041b53212%2Fimage%20(91).png?alt=media" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://284256719-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUgE12kxtw8dDbuEZGzbI%2Fuploads%2Fgit-blob-ce18ec8e778fe116454b04dc07aaa9c3be3fe907%2Fimage%20(92).png?alt=media" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://284256719-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUgE12kxtw8dDbuEZGzbI%2Fuploads%2Fgit-blob-6e4c3d348949f5f7fc6873ec584cec5214e23474%2Fimage%20(93).png?alt=media" 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="https://284256719-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUgE12kxtw8dDbuEZGzbI%2Fuploads%2Fgit-blob-4e9c6c1b909c46b70556e797bc1aaecfcdb7cafe%2Fimage%20(94).png?alt=media" 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="https://284256719-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUgE12kxtw8dDbuEZGzbI%2Fuploads%2Fgit-blob-2cc5955a5909ee5ef6cbb43213a652d10c7ab5b6%2Fimage%20(95).png?alt=media" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
