Record.FieldNames

This function retrieves the names of the fields in the specified record and returns them as text.

Syntax

Record.FieldNames(record as record) as list

About

This function retrieves the names of the fields in the specified record and returns them as text.

Explanation

Locate the field names in the record by using Power Query M function Record.FieldNames([OrderID = 1, CustomerID = 1, Item = "Fishing rod", Price = 100.0]). The output will display the following fields: {"OrderID", "CustomerID", "Item", "Price"}.