VBScript 1.4.0
This is a VBScript constant defined to the value of 4. This constant will be used to set the Scope of a persistent variable to the group scope.
Variables with a scope seto to SCOPE_GROUP are visible/accessible for all scripts of the current script group.
This is the default scope of every new persistent variable if being used within a call routing for a group. If the variable is used in a call routing for a user the default is SCOPE_USER. If being used outside of a call routing script (new in v1.1.0) the default is SCOPE_GLOBAL.
Dim Announcement Set Announcement = new PersistentVariable Announcement.Name = "Welcome" Announcement.Scope = SCOPE_GROUP
If you use the persistent variable in a group call routing, the default scope is SCOPE_GROUP, so you an shorten your code to:
Dim Announcement Set Announcement = new PersistentVariable Announcement.Name = "Welcome"
The above examples define a persistent variable Welcome in the Group scope. This variable is visible/accessible for all scripts of the same group.
Another script of another group which defines also a persistent variable Welcome does not interfere.
By Tom Wellige