Record.HasFields

About

Returns true if the field name or field names are present in a record.

Syntax

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

Arguments

Argument Description
record The Record to check against.
fields A text value or a list of text values.

Examples:

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