Replace the environmental variables

In Service Manager Classic, the $L.env variable stores the profile record. However, in Service Manager Codeless, the $L.env variable stores the tableAccess record. Therefore, all code in the Change Management module that uses the $L.env variable (mostly, this relates to Display Options) must be updated to use the $G.cm3r.environment or $G.cm3t.environment variables.

For example, the display condition of the cm.view.display_approve display option must be updated as follows:


evaluate(approvals in $L.env)

After update:

evaluate(approvals in $G.cm3r.environment) or evaluate(approvals in $G.cm3t.environment)