File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Core ServiceNow APIs/GlideSystem/getCurrentScopeName Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 1+ ** getCurrentScopeName()** is a GlideSystem method to get the name of the current application scope. Following code can be used to get the name.
2+
3+ gs.info(gs.getCurrentScopeName());//prints rhino.global if ran in Global scope
4+
5+ Scope can be changed from the Application Scope Picker.
6+
7+ <img width =" 421 " height =" 128 " alt =" Screenshot 2025-10-20 at 9 34 00 AM " src =" https://github.com/user-attachments/assets/03b198a9-c689-4865-b68c-a397e1ea44ea " />
8+
9+ If ran in a private application scope the output will contain the name of the private application.
10+
11+ <img width =" 1308 " height =" 130 " alt =" Screenshot 2025-10-20 at 9 35 12 AM " src =" https://github.com/user-attachments/assets/761a0b03-3ebc-40fc-b518-d3dce0c691a8 " />
12+
113
You can’t perform that action at this time.
0 commit comments