You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add README for Domain Separation Current Domain Display
Added documentation for the Domain Separation Current Domain Display functionality, including an overview, components, methods, and usage instructions.
This functionality provides real-time awareness to users about the current selected domain within ServiceNow's Domain Separation framework. It displays an informational message on form load indicating the active domain context, helping prevent accidental configuration or data entry in the wrong domain.
4
+
5
+
Components
6
+
Script Include: DomainCheckUtil
7
+
Global, client-callable Script Include allowing client scripts to query the current domain name via GlideAjax.
8
+
9
+
Methods:
10
+
isCurrentDomain(domainSysId) — Checks if a given domain sys_id matches the current session domain.
11
+
12
+
Client Script
13
+
An onLoad client script configured globally on the Global table, set to true to load on all forms.
14
+
Calls the Script Include via GlideAjax to retrieve current domain name asynchronously.
15
+
16
+
Displays the domain name as an informational message (g_form.addInfoMessage) on the form header on every page load.
17
+
18
+
Usage
19
+
Upon loading any record form, users see a message stating:
20
+
"You are currently working in Domain Separation domain: [domain_name]."
0 commit comments