Record.ToTable
Record.ToTable(record as record) as table
返回一个表,其中包含 Name
和 Value
列,且 record
中的每个字段都占一行。
从记录返回表。
使用情况
Record.ToTable([OrderID = 1, CustomerID = 1, Item = "Fishing rod", Price = 100.0])
输出
Table.FromRecords({
[Name = "OrderID", Value = 1],
[Name = "CustomerID", Value = 1],
[Name = "Item", Value = "Fishing rod"],
[Name = "Price", Value = 100]
})