Skip to main content

Record.HasFields

Indicates whether the record has the specified fields.

Syntax

Record.HasFields(
record as record,
fields as any
) as logical

Remarks

Indicates whether the record record has the fields specified in fields, by returning a logical value (true or false). Multiple field values can be specified using a list.

Examples

Example #1

Check if the record has the field "CustomerID".

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

Result:

true

Example #2

Check if the record has the field "CustomerID" and "Address".

Record.HasFields([CustomerID = 1, Name = "Bob", Phone = "123-4567"], {"CustomerID", "Address"})

Result:

false

Category

Record.Information