Usage of TESTFIELD in D365 BC

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.

BudgetPrice” must not be zero at the time of entering a value in “BundleItem”

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

“BudgetPrice” must be 10 at the time of entering a value in “BundleItem”

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

Leave a Reply