#included directive.
Historically, you couldn’t run CRMScript modules. Now, scriptwriters can use environment variables to invoke and debug module scripts:
- developmentMode
- includeId
Debugging modules
developmentMode and includeId are set only when the script is run inside the code editor. To access them, call getVariable(). For example:
developmentMode* to true and includeId to the includeId of the current script.
This lets you incorporate global code in your CRMScript:
-
When editing your module library, only the part inside the
ifstatement is run by the Execute script click event. - When the library is included in production code, the debug code is not run when the production code is.