---
schema_version: "1"
id: 33ff478d5a907ac9e9e46368a37efcdb2f704f84bdf709c5941c9aa50067e16c
title: List Model
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/cg_modeler_listobject_listmodel.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.cg_modeler_listobject_listmodel.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: cf09ecd18db150caa48064210bb20119e43685c9e85b2fe7e6bcdc6b25428112
description: List Model is the base class for all list objects. It isn’t meant to be accessed directly, but provides methods for all objects that inherit from this class.
products:
  - Consumer Goods
release: "264"
---
# List Model

List Model is the base class for all list objects. It isn’t meant to be accessed directly, but provides methods for all objects that inherit from this class.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Lightning Experience in <strong>Professional</strong>, <strong>Unlimited</strong>, and <strong>Enterprise</strong> Editions that have Consumer Goods Cloud enabled.</td></tr></tbody></table>

- **[addObjectItems(objectList)](https://help.salesforce.com/s/articleView?id=ind.cg_modeler_listobject_add_objectitems.htm&release=264.0.0&type=5)**  
    Adds the given items to the internal object list.
- **[addItemsIncremental(jsonDataList, loadParams, itemComparisonParams)](https://help.salesforce.com/s/articleView?id=ind.cg_modeler_listobject_additems_incremental.htm&release=264.0.0&type=5)**  
    Add items to a list without removing the existing items and without adding duplicates. The method also performs postLoadItemUpdates if the method exists for the given LO.
- **[getAllItems()](https://help.salesforce.com/s/articleView?id=ind.cg_modeler_listobject_get_allitems.htm&release=264.0.0&type=5)**  
    Returns all existing items in the list object.
- **[getNextListItemPKey (record)](https://help.salesforce.com/s/articleView?id=ind.cg_modeler_listobject_get_next_listitem_pkey.htm&release=264.0.0&type=5)**  
    Returns the PKey value of the next item in the list.
- **[getItemObjects()](https://help.salesforce.com/s/articleView?id=ind.cg_modeler_listobject_getitem_objects.htm&release=264.0.0&type=5)**  
    Returns an array of list items that match the currently applied filters. Call this method for UI-Binding only. Use getAllItems() if you want to get all existing items in the list.
- **[getItemByPKey(pKeyValue)](https://help.salesforce.com/s/articleView?id=ind.cg_modeler_listobject_getitem_pkey.htm&release=264.0.0&type=5)**  
    Searches for an item within the list for the given PKey and returns it. Returns null if no items or multiple items have been found.
- **[getItemsByParam(JSONParams)](https://help.salesforce.com/s/articleView?id=ind.cg_modeler_listobject_getitems_param.htm&release=264.0.0&type=5)**  
    Returns an array of items that match the parameters.
- **[getItemsByParamArray(ArrayOfParams, ArrayOfSortCriteria)](https://help.salesforce.com/s/articleView?id=ind.cg_modeler_listobject_getitems_param_array.htm&release=264.0.0&type=5)**  
    Returns an array of items that can be iterated.
- **[isFiltered()](https://help.salesforce.com/s/articleView?id=ind.cg_modeler_listobject_isfiltered.htm&release=264.0.0&type=5)**  
    Checks if filters are set on a list.
- **[orderBy({Object}parameters)](https://help.salesforce.com/s/articleView?id=ind.cg_modeler_listobject_orderby_objectparam.htm&release=264.0.0&type=5)**  
    Sorts the list items according to the given sort parameters.
- **[removeAllItems()](https://help.salesforce.com/s/articleView?id=ind.cg_modeler_listobject_remove_allitems.htm&release=264.0.0&type=5)**  
    Removes all items from the list object.
- **[removeItems(pKeyList)](https://help.salesforce.com/s/articleView?id=ind.cg_modeler_listobject_remove_items.htm&release=264.0.0&type=5)**  
    Removes all items corresponding to the given list of PKeys.
- **[resetAllFilters()](https://help.salesforce.com/s/articleView?id=ind.cg_modeler_listobject_reset_allfilters.htm&release=264.0.0&type=5)**  
    Resets all filters on this object list.
- **[resetFilter(fieldName)](https://help.salesforce.com/s/articleView?id=ind.cg_modeler_listobject_reset_filter.htm&release=264.0.0&type=5)**  
    You can reset a filter applied on one property. Resets the filter on the given attribute name.
- **[resumeListRefresh()](https://help.salesforce.com/s/articleView?id=ind.cg_modeler_listobject_resume_list_refresh.htm&release=264.0.0&type=5)**  
    Resumes sending events after calling suspendListRefresh().
- **[setCurrentByPKey(PKey, mode)](https://help.salesforce.com/s/articleView?id=ind.cg_modeler_listobject_set_current_pkey.htm&release=264.0.0&type=5)**  
    Selects an element of the list. If the selection happens after adding an item, the mode parameter is used to notify the framework. This is required for certain master detail scenarios on phones where the added item detail must be shown.
- **[setFilter(fieldName, value, operator)](https://help.salesforce.com/s/articleView?id=ind.cg_modeler_listobject_set_filter.htm&release=264.0.0&type=5)**  
    Filters the list object based on a filter property value and the operator specified.
- **[setFilterArray(\[{"fieldName":"value", "op": "operator"}, ... \])](https://help.salesforce.com/s/articleView?id=ind.cg_modeler_listobject_set_filter_array.htm&release=264.0.0&type=5)**  
    Filters the list object based on the filter property array values and the operator specified.
- **[suspendListRefresh()](https://help.salesforce.com/s/articleView?id=ind.cg_modeler_listobject_suspend_listrefresh.htm&release=264.0.0&type=5)**  
    Prevents the list item store from sending