AnsweredAssumed Answered

Perform Script Step on Server and Global Variables

Question asked by ayescas on Oct 12, 2015
Latest reply on Oct 12, 2015 by ayescas

Hello TechNet,


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?