web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :

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

Jayaprakash Reddy Profile Picture Jayaprakash Reddy 270

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!

Comments

*This post is locked for comments