Record.SelectFields
语法
Record.SelectFields(record as record, fields as any, optional missingField as nullable number) as record
关于
从输入 record
返回一条记录,该记录仅包含在列表 fields
中指定的字段。
示例 1
选择记录中的字段“Item”和“Price”。
使用情况
Record.SelectFields(
[OrderID = 1, CustomerID = 1, Item = "Fishing rod", Price = 100.0],
{"Item", "Price"}
)
输出
[Item = "Fishing rod", Price = 100]