Copies all matching fields in one record to another record.

Record.TRANSFERFIELDS(FromRecord [, InitPrimaryKeyFields])

Parameters

Record

Type: Record

The record to which you want to copy the contents of the fields in FromRecord.

FromRecord

Type: Record

The record from which to copy.

InitPrimaryKeyFields

Type: Boolean

Default: true

If this parameter is true and the records are in the same table, both the timestamp and the Primary Key fields of the destination record will be changed.

If this parameter is true and the records are not in the same table, the Primary Key fields of the destination record will be changed (if the fields fulfill the conditions specified above) but the timestamp of the destination record will not be changed.

If this parameter is false, the timestamp or the Primary Key fields of the destination record will not change.

Expand imageRemarks

Expand imageExample

Expand imageSee Also