Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 650 Bytes

record-addfield.md

File metadata and controls

29 lines (19 loc) · 650 Bytes
description title
Learn more about: Record.AddField
Record.AddField

Record.AddField

Syntax

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

About

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

Example 1

Add the field Address to the record.

Usage

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."]