Adds a field to a record.
function (
record
as record,fieldName
as text, optionalvalue
as nullable any, optionaldelayed
as nullable any) as record
Adds a field to a record record
, given the name of the field fieldName
and the value value
.
Record.Transformations
Add the field Address to the record.
Record.AddField([CustomerID = 1, Name = "Bob", Phone = "123-4567"], "Address", "123 Main St.")
[CustomerID=1, Name= "Bob", Phone="123-4567", Address="123 Main St."]