Record.AddFieldRecord.AddField

СинтаксисSyntax

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

СведенияAbout

Добавляет поле к записи record для заданного имени поля fieldName и значения value.Adds a field to a record record, given the name of the field fieldName and the value value.

Пример 1Example 1

Добавление поля Address к записи.Add the field Address to the record.

Record.AddField([CustomerID = 1, Name = "Bob", Phone = "123-4567"], "Address", "123 Main St.")
CustomerIDCustomerID 11
ИмяName ВладимирBob
Номер телефонаPhone 123-4567123-4567
АдресAddress 123 Main St.123 Main St.