Record.HasFields
Indicates whether the record has the specified fields.
function (record
as record, optionalfields
as nullable 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.Record.Information
Check if the record has the field "CustomerID".
Record.HasFields([CustomerID = 1, Name = "Bob", Phone = "123-4567"],"CustomerID")
true
Check if the record has the field "CustomerID" and "Address".
Record.HasFields([CustomerID = 1, Name = "Bob", Phone = "123-4567"],{"CustomerID", "Address"})
false
Last modified 4yr ago