Record.HasFields
Syntax
Record.HasFields(record as record, fields as any) as logical
About
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.
Example 1
Check if the record has the field "CustomerID".
Usage
Record.HasFields([CustomerID = 1, Name = "Bob", Phone = "123-4567"], "CustomerID")
Output
true
Example 2
Check if the record has the field "CustomerID" and "Address".
Usage
Record.HasFields([CustomerID = 1, Name = "Bob", Phone = "123-4567"], {"CustomerID", "Address"})
Output
false
Phản hồi
https://aka.ms/ContentUserFeedback.
Sắp ra mắt: Trong năm 2024, chúng tôi sẽ dần gỡ bỏ Sự cố với GitHub dưới dạng cơ chế phản hồi cho nội dung và thay thế bằng hệ thống phản hồi mới. Để biết thêm thông tin, hãy xem:Gửi và xem ý kiến phản hồi dành cho