Jump to content

- Properties & Methods

- # Persistent Variables - 4.4 - Scope

  Followers 0

  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.

  By Tom Wellige

  - May 14, 2022
  Share
  Share
  Followers 0
  Previous Page 4.3 - Default
  Next Page 4.5 - Namespace

## Important Information

By using this site, you agree to our Terms of Use and have taken note of our Privacy Policy.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.