Record.HasFields
Record.HasFields(record as record, fields as any) as logical
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.
Check if the record has the field "CustomerID".
Usage
Record.HasFields([CustomerID = 1, Name = "Bob", Phone = "123-4567"], "CustomerID")
Output
true
Check if the record has the field "CustomerID" and "Address".
Usage
Record.HasFields([CustomerID = 1, Name = "Bob", Phone = "123-4567"], {"CustomerID", "Address"})
Output
false