VBScript
This property sets the scope, i.e. the visibility, of a persistent variable. It takes a numerical value from 1 - 4. Any other values will be ignored.
If you omit this property the default scope is used. This is the user scope if you use the persistent variables within a call routing script of a user, or the group scope if you use the persistent variable within a call routing script of a group.
If you use the persistent variable outside of a call routing script (new in v1.1.0) the default scope is the global scope.
For convenience purpose there are four VBScript constants defined for the four available scopes: SCOPE_NAMESPACE (1), SCOPE_USER (2 - default in user call routings), SCOPE_GROUP (4 - default in group call routings) or SCOPE_GLOBAL (3).
Dim Announcement Set Announcement = new PersistentVariable Announcement.Name = "Welcome" Announcement.Scope = SCOPE_GLOBAL
The above example set the scope of the persistent variable Welcome to global, meaning that this variable is visible and accessible from all scripts of all users and groups.
![Tom Wellige](http://content.invisioncic.com/r255538/monthly_2020_04/facebook2.thumb.png.7201b63ad83065920f23d2478c4a838f.png)
By Tom Wellige