Variables are scoped at the script level. A variable may be created in a particular script (such as a Before Integration script) and assigned a value, but the variable will not be recognized by other scripts in the same integration (such as a Field script). The GetVariable and SetVariable methods are designed to store variables from one script so that they may be retrieved by another script.
Sometimes, you need to pass information from one script in the integration to another. The SetVariable statement, GetVariable function, and ClearVariables statement are available in Integration Manager to allow this. With these commands, you can create, set, and retrieve variables from any script in the integration. For more information, refer to Functions.