Record.FieldNames

 

This topic applies to the Power Query Formula Language which can be used with Power Query and Power BI Desktop to build queries that mashup data. See the list of function categories.

Returns a list of field names in order of the record's fields.

Record.FieldNames(record as record) as list  

ArgumentDescription
recordThe Record to check.
Record.FieldNames( [OrderID = 1, CustomerID = 1, Item = "Fishing rod", Price = 100.0] )  

equals {"OrderID","CustomerID", "Bait", "Price"}  

Show: