Usage of TRANSFERFIELDS in D365 BC:
(1) “TRANSFERFIELDS” is used mainly to copy all same fields in one record to another.
(2) “TRANSFERFIELDS” copies records on the basis of field number and the field must have the same datatype.
(3) If field datatype is different then it will give a run time error.
(4) Let’s take an example, go to the Sales-Post and Purchase-Post codeunit, find this function for reference and its usage as shown.

(5) Syntax:
Record.TransferFields(FromRecord) |