Usage of TRANSFERFIELDS in D365 BC

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.

TRANSFERFIELDS example in business central

(5) Syntax:

Record.TransferFields(FromRecord)

Usage of COMMIT in BC D365
D365 BC Shows Error When Changes Made in Table Fields- Solved
How to change Caption or Name of existing Field in D365 BC
Record.TransferFields(var Record [, Boolean]) Method– Microsoft Docs

Leave a Reply