Record.FromTable
Record.FromTable(table as table) as record
Mengembalikan rekaman dari tabel rekaman table
berisi nama bidang dan nama nilai {[Name = name, Value = value]}
. Pengecualian dilemparkan jika nama bidang tidak unik.
Buat rekaman dari tabel formulir Table.FromRecords({[Name = "CustomerID", Value = 1], [Name = "Name", Value = "Bob"], [Name = "Phone", Value = "123-4567"]}).
Penggunaan
Record.FromTable(
Table.FromRecords({
[Name = "CustomerID", Value = 1],
[Name = "Name", Value = "Bob"],
[Name = "Phone", Value = "123-4567"]
})
)
Output
[CustomerID = 1, Name = "Bob", Phone = "123-4567"]