Record.ToTable
Returns a table with each row being a field name and value of the input record.
Syntax
Record.ToTable(
record as record
) as table
Remarks
Returns a table containing the columns Name
and Value
with a row for each field in record
.
Examples
Example #1
Return the table from the record.
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