You are here:
addItemChangedBatchEventListener()
There are two ways to instantiate a lightweight list in your code. The approach you choose depends on whether the lightweight list is a pure lightweight list or if it is combined with a standard list.

Use more general search terms.
Select fewer filters to broaden your search.
You are here:
There are two ways to instantiate a lightweight list in your code. The approach you choose depends on whether the lightweight list is a pure lightweight list or if it is combined with a standard list.
| Available in Lightning Experience in Professional, Unlimited, and Enterprise Editions that have Consumer Goods Cloud enabled. |
Description
This function registers an event handler and is used when list item changed events should be returned as a batch. This is performed by suspending and resuming the list to return the stored list of events as a batch. Since there can only be one batch listener associated to a list, upon having more than one batch listener for a list, only the latest batch listener is considered.
Parameters
Example
There are two forms:
| Form | Description |
|---|---|
|
Here, the parameters are: list object name / host reference and Item change event name. |
|
Here, the get function of a list object is preceding the addItemChangedBatchEventListener function call, with the parameters: Item change event name, host and host reference/ list object name. |

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.