---
schema_version: "1"
id: e43832112cfe6d84a007c8f8fa242bccf5e61207d96e4d7f777abce10424a07b
title: getAllItems()
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/cg_modeler_listobject_get_allitems.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.cg_modeler_listobject_get_allitems.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: ec45d3f5ace117f4c6d47f9ff3ccdc41bff9cce764ccd5a8cf6c0458bc0bba7f
description: Returns all existing items in the list object.
products:
  - Consumer Goods
release: "264"
---
# getAllItems()

Returns all existing items in the list object.

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

## Parameters

None

## Returns

All items in the list.

## Usage

Returns the length of the whole list in the format `getAllItems().length`.

![Example](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ind-consumer_goods_retail_vscode_modeler-264-0-0-production-enus/87cab158-9245-45b0-9080-f17a57d69ec9/images/icon_example.png)

Example

```
var orderItems = this.getLoItems().getAllItems();
```