Skip to main content

Record.AddField

Adds a field to a record.

Syntax

Record.AddField(
record as record,
fieldName as text,
value as any,
optional delayed as logical
) as record

Remarks

Adds a field to a record record, given the name of the field fieldName and the value value.

Examples

Example #1

Add the field Address to the record.

Record.AddField([CustomerID = 1, Name = "Bob", Phone = "123-4567"], "Address", "123 Main St.")

Result:

[CustomerID = 1, Name = "Bob", Phone = "123-4567", Address = "123 Main St."]

Category

Record.Transformations