Record.AddField
Record.AddField(record as record, fieldName as text, value as any, optional delayed as nullable logical) as record
Føjer et felt til en post record
med navnet på feltet fieldName
og værdien value
.
Føj feltet Address til posten.
brug
Record.AddField([CustomerID = 1, Name = "Bob", Phone = "123-4567"], "Address", "123 Main St.")
output
[CustomerID = 1, Name = "Bob", Phone = "123-4567", Address = "123 Main St."]