Table of contents
TOC
Collapse the table of content
Expand the table of content

Record.AddField

Owen Duncan|Last Updated: 4/19/2018

About

Adds a field from a field name and value.

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

Arguments

ArgumentDescription
recordThe Record to modify.
fieldNameThe value to name the field.
valueThe value to add to the field.
optional delayedIndicates whether the field value or a function that computes the field value.

Example

Record.AddField( [CustomerID = 1, Name = "Bob", Phone = "123-4567"] , "Address", "123 Main St.")  
equals [CustomerID=1, Name= "Bob", Phone="123-4567", Address="123 Main St."]  
CustomerID1
Phone123-4567
Address123 Main St.
© 2018 Microsoft