Record.Field

About

Returns the value of the given field. This function can be used to dynamically create field lookup syntax for a given record. In that way it is a dynamic verison of the record[field] syntax.

Syntax

Record.Field(record as record, field as text) as any  

Arguments

Argument Description
record The record to check.
field The field to obain the value for.

Example

Record.Field([CustomerID = 1, Name = "Bob", Phone = "123-4567"], "CustomerID") equals 1