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]
})