Tuesday, July 13, 2021

Use constant variable in place of Macros in Dynamics 365 finance and operations

Macros functionality was  originally a bug in implementing the legacy  compiler,  however, many developers often take advantage of this functionality.   Dynamics  365 FO  includes the use of  Macros, but Microsoft recommends that new codes not be  written  using  Macros.   This functionality has a significant effect on compiler performance.

Therefore, use the concepts of constant variables(const)and read-only (readonly) instead of Macros.

Remembering that constant variables, the value cannot be changed, and read-only variables can be declared in class constructors (method:  new)only.

Hope you find this useful I will come up with another interesting blog post!




No comments:

Post a Comment