getAllItems()

Returns all existing items in the list object.

Required Editions

Available in: Lightning Experience in Professional, Unlimited, and Enterprise Editions that have Consumer Goods Cloud enabled.

Parameters

None

Returns

All items in the list.

Usage

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

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