Skip to content

Get List Item

Type: list-get  ·  Package: Collections Activities v1.0.3  ·  Output: object

Gets the element at a specific position of the list. Indexes start at 0: the first element is index 0, the second 1, etc.

Reads the element at position index of list and returns it. It does not modify the list. If the index does not exist, it fails with a message stating how many elements the list has.

ParameterTypeDefaultDescription
listList—The list.
indexint—Position, counting from 0. It must be between 0 and the number of elements minus 1.

None.

Returns an object with the element, with its original type. If the stored element is null, it returns null.

MessageCause and fix
Index … is out of range (list count: …).The index is negative or greater than or equal to the size (also for an empty list). Check the size with List Count.
'list' must be a List, got ….list is not a list (the message shows the type received, or null).
.NET format errorindex is a text that is not an integer.
Get List Item list = names index = 0 → output: first
Log message = "First name: " + first