Skip to main content



ToList Function

Returns a list object from a collection.

Syntax 1

ToList(collection, valueField)

Returns a list object from a collection.

Arguments

collection Collection - A collection.

valueField Field - A field in the collection.

Syntax 2

ToList(collection, valueField, displayField)

Returns a list object from a collection.

Arguments

collection Collection - A collection.

valueField Field - A field in the collection.

displayField Field - A field in the collection.

Remarks

Example:

ToList(Collection1, Field1) // returns value-list:{"a", "b", "c"}

Example:

ToList(Collection1, Field1, Field2) // returns value-list:{{1, "a"}, {2, "b"}, {3, "c"}}