Skip to main content

Table.ToList

Converts a table into a list by applying the specified combining function to each row of values in the table.

Syntax

Table.ToList(
table as table,
optional combiner as function
) as list

Remarks

Converts a table into a list by applying the specified combining function to each row of values in the table.

Examples

Example #1

Combine the text of each row with a comma.

Table.ToList(
Table.FromRows({
{Number.ToText(1), "Bob", "123-4567"},
{Number.ToText(2), "Jim", "987-6543"},
{Number.ToText(3), "Paul", "543-7890"}
}),
Combiner.CombineTextByDelimiter(",")
)

Result:

{"1,Bob,123-4567", "2,Jim,987-6543", "3,Paul,543-7890"}

Category

Table.Conversions