I have a script using Perform Script, which basically creates a record and sets a field with a Global Variable.
Works fine, but here is my issue:
Instead of using "Perform Script" I want to use "Perform Script on Server" because the script creates hundreds of records and I want to improve the performance. Now the records get created, but the global ($$) variable are not being set.
I read the following: "Global variables can be used if they are defined AFTER the script begins running on the server", so I tried using a "Replace All" script-step after the script ran on server and my global variable are still not setting. What am I missing?