Table of contents
TOC
Collapse the table of content
Expand the table of content

Record.FromList

Owen Duncan|Last Updated: 10/5/2018
|
1 Contributor

About

Returns a record from a list of field values and a set of field names.

Record.FromList(list as list, fields as any) as record  

Arguments

ArgumentDescription
listThe list of values in the record to check.
fieldsThe set of fields corresponding to the values. The fields can be specific either by a list of text values or a record type.

Remarks

  • An Expression.Error is thrown if the fields are not unique.

Examples

Record.FromList  
  
(  
  
    {1, "Bob", "123-4567"},  
  
    type [CustomerID = number, Name = text, Phone = number]  
  
)  
  
equals [CustomerID = 1, Name = "Bob", Phone = "123-4567"]  
OrderID1
NameBob
Phone123-4567
© 2018 Microsoft