Skip to content

Commit c4f8c70

Browse files
authored
Create README.md
1 parent 01bb3d8 commit c4f8c70

File tree

1 file changed

+10
-0
lines changed
  • Core ServiceNow APIs/GlideNavigation/Redirect user to a new URL

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# g_navigation.open(url, target)
2+
This method redirects users to a new URL. You can specify the frame where the content should load (e.g., the current frame or a specific one).
3+
4+
### Example: Open All Active Incidents of the Caller
5+
6+
var callerID = g_form.getValue("caller_id");
7+
var url = "incident_list.do?sysparm_query=active=true^caller_id=" + callerID;
8+
g_navigation.open(url, "_blank");
9+
10+
This code opens a list of all active incidents for a specific caller in the current frame. It’s perfect for quickly accessing incidents tied to a particular user without leaving your current workflow.

0 commit comments

Comments
 (0)