Record.AddField
Record.AddField(record as record, fieldName as text, value as any, optional delayed as nullable logical) as record
指定欄位的名稱 record
和值 fieldName
後,在記錄 value
中新增欄位。
將 Address 欄位新增至記錄中。
使用方式
Record.AddField([CustomerID = 1, Name = "Bob", Phone = "123-4567"], "Address", "123 Main St.")
輸出
[CustomerID = 1, Name = "Bob", Phone = "123-4567", Address = "123 Main St."]