Usage of TESTFIELD in D365 BC:
(1) “TESTFIELD” is used mainly for validations.
(2) Syntax:
Record.TestField(Field: Any, Value: Code) |
(3) Let’s take an example, “BudgetPrice” must not be zero at the time of entering a value in “BundleItem” as shown.

(4) Second example, “BudgetPrice” must be 10 at the time of entering a value in “BundleItem” as shown.

Usage of TRANSFERFIELDS in D365 BC How to Create General Ledger Setup in D365 BC How to create a New Instance in Dynamics 365 BC, Business Central Record.TestField(Any, Code) Method– Microsoft Docs |