Scope and Namespace in ServiceNow Applications

Scope and Namespace

  • Elements Used to Generate a Namespace Identifier:

    • The namespace identifier is constructed using a combination of elements:
      • Prefix characters for a scoped application.
      • The instance customer prefix.
      • The application ID.
  • Element: Prefix Characters for a Scoped Application

    • Requirement: Scoped applications always start with an x_ prefix.
    • Example Value: x_
  • Element: Instance Customer Prefix

    • Requirement: This string is two to five characters long. ServiceNow generates this prefix for each customer.
    • Details:
      • The instance stores the prefix in the glide.appcreator.company.code system property.
    • Example Value: acme
  • Element: Application ID

    • Requirement: This string can be up to 40 characters long.
    • Details:
      • If the string is longer than 18 characters, the system truncates the application name and appends it to prefix x_<glide.appcreator.company.code>_.
      • Application developers set this ID when they create the application. The system uses the application name by default.
    • Example Value: book_rooms
  • Example of Namespace Identifier Generation:

    • The example values (x_, acme, book_rooms) generate a namespace identifier of x_acme_book_rooms.