Description
"transformRun" is not defined.
Steps to Reproduce
The scenario described in the obsolete Geneva documentation on this, to declare the LDAP utils in an onStart and onAfter, does not work any more.
Ref.:
https://docs.servicenow.com/integrate/ldap/concept/c_OnStartAndOnAfterScripts.html
You can no longer declare variables in an onStart that can be read in another transform map event script , for instance an onBefore or onAfter. You now have to run what you used to run in the onStart in the onAfter.
Workaround
This is expected behaviour. A runTransformScript function template has been added for scripts in the new Transform Event Script record form. The recommended practice is to not use global variables inside transform map event scripts. If global variables are needed, they can be declared outside function template and passed in, and the previous template will have to be removed.
PRB633362/KB0676966: The [error] variable does not persist in an [onAfter] script in transform map.
PRB633363/KB0595652: [action] variable is not available in [field map] script in transform map in Fuji
Related Problem: PRB669502