Skip to content

Commit ec4c641

Browse files
Updated README.md
1 parent 387dd65 commit ec4c641

File tree

1 file changed

+12
-0
lines changed
  • Core ServiceNow APIs/GlideSystem/getCurrentScopeName

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,13 @@
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

0 commit comments

Comments
 (0)