Record.FromList Function in Power Query

The Record.FromList function returns a record by using the given list of field values and a set of fields.

Note: The field names can be specified by a list of text values. The field names must be unique otherwise error will throw.

Syntax

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

Example:

Power Query M

let
  Source = {"Ashish", "India", "Developer"}, 
  Return = Record.FromList(Source, {"Name", "Country", "Profession"})
in
  Return

The output of the above code is shown below:

Record.FromList function in Power Query