Table.ToList
Table.ToList(table as table, optional combiner as nullable function) as list
將所指定結合函式套用至資料表中每個資料列的值,藉以將資料表轉換成清單。
使用逗號來合併每個資料列文字。
使用方式
Table.ToList(
Table.FromRows({
{Number.ToText(1), "Bob", "123-4567"},
{Number.ToText(2), "Jim", "987-6543"},
{Number.ToText(3), "Paul", "543-7890"}
}),
Combiner.CombineTextByDelimiter(",")
)
輸出
{"1,Bob,123-4567", "2,Jim,987-6543", "3,Paul,543-7890"}