メインコンテンツまでスキップ

Record.ToTable

各行に入力レコードのフィールド名と値を含むテーブルを返します。

Syntax​

Record.ToTable(
record as record
) as table

Remarks​

record 内のフィールドごとに 1 行あり、列 Name と Value を含むテーブルを返します。

Examples​

Example #1​

レコードからテーブルを返します。

Record.ToTable([OrderID = 1, CustomerID = 1, Item = "Fishing rod", Price = 100.0])

Result:

Table.FromRecords({
[Name = "OrderID", Value = 1],
[Name = "CustomerID", Value = 1],
[Name = "Item", Value = "Fishing rod"],
[Name = "Price", Value = 100]
})

Category​

Record.Serialization