OpenBI Docs Buy

Record.FieldNames

The names of a record's fields, in the record's order.

Group: Record. Power Query M has it too: a query that uses it is written as in Power BI.

Syntax

Record.FieldNames(record as record) as list
ParameterTypeDescription
recordrecordThe record whose field names you want.

Returns

list. A list of texts, one per field.

Examples

A customer record's fields

Record.FieldNames([Name = "Ann", City = "Oslo", Since = 2021])
{"Name", "City", "Since"}

The order is the record's own, not alphabetical.

Record.FieldValues, Record.ToTable, Record.FieldCount, Table.ColumnNames.

Last updated · OpenBI Studio 0.3.79