ServiceNow - Navigation Handlers

February 01, 2014 • ServiceNow

If you’re working in ServiceNow, depending upon where what you need to do you may run into objects ServiceNow gives you access to but doesn’t document. This posts lists out the available methods for g_uri and g_request.

// These are the available methods for g_uri and g_request
g_uri.action();
g_uri.addIgnoreParam();
g_uri.class();
g_uri.deleteMatchingParameter();
g_uri.deleteParmameter();
g_uri.equals();
g_uri.fileFromPath();
g_uri.get();
g_uri.getAction();
g_uri.getClass();
g_uri.getFileFromPath();
g_uri.getMap();
g_uri.getPath();
g_uri.hashCode();
g_uri.isSetAsDefault();
g_uri.map();
g_uri.notify();
g_uri.notifyAll();
g_uri.path();
g_uri.set();
g_uri.setAbsoluteURI();
g_uri.setAction();
g_uri.setAsDefault();
g_uri.setFilter();
g_uri.setParameter();
g_uri.setRelatedQuery();
g_uri.toString();
g_uri.wait();

g_request.asyncStarted();
g_request.asyncSupported();
g_request.authType();
g_request.contentLength();
g_request.contextPath();
g_request.cookies();
g_request.dispatcherType();
g_request.equals();
g_request.getAsyncContext();
g_request.getAttribute();
g_request.getAttributeNames();
g_request.getAuthType();
g_request.getCharacterEncoding();
g_request.getContentLength();
g_request.getContentType();
g_request.getCookies();
g_request.getDispatcherType();
g_request.getHeader();
g_request.getHeaderNames();
g_request.getInputStream();
g_request.getIntHeader();
g_request.getLocalAddr();
g_request.getLocale();
g_request.getLocales();
g_request.getLocalName();
g_request.getMethod();
g_request.getOriginalParameterMap();
g_request.getParameterMap();
g_request.getParameterNames();
g_request.getParameterValues();
g_request.getPart();
g_request.getParts();
g_request.getPathInfo();
g_request.getPathTranslated();
g_request.getProtocol();
g_request.getRealPath();
g_request.getRemoteAddr();
g_request.getRemoteUser();
g_request.getRequestDispatcher();
g_request.getRequestedSessionId();
g_request.getRequestURI();
g_request.getRequestURL();
g_request.getScheme();
g_request.getServletPath();
g_request.getSession();
g_request.getSiteID();
g_request.getSiteName();
g_request.getUserPrincipal();
g_request.headerNames();
g_request.inputStream();
g_request.isAsyncStarted();
g_request.isAsyncSupported();
g_request.isPublic();
g_request.isRequestedSessionIdFromCookie();
g_request.isRequestedSessionIdFromUrl();
g_request.isRequestedSessionIdFromURL();
g_request.isRequestedSessionIdValid();
g_request.isSecure();
g_request.isVirtual();
g_request.localAddr();
g_request.locale();
g_request.locales();
g_request.login();
g_request.logout();
g_request.method();
g_request.notify();
g_request.notifyAll();
g_request.originalParameterMap();
g_request.parameterMap();
g_request.parameterNames();
g_request.parts();
g_request.pathInfo();
g_request.pathTranslated();
g_request.protocol();
g_request.queryString();
g_request.reader();
g_request.remoteAddr();
g_request.remoteHost();
g_request.remotePort();
g_request.removeAttribute();
g_request.requestedSessionId();
g_request.requestedSessionIdFromCookie();
g_request.requestedSessionIdFromURL();
g_request.requestedSessionIdValid();
g_request.requestURI();
g_request.requestURL();
g_request.scheme();
g_request.secure();
g_request.serverPort();
g_request.servletPath();
g_request.setAttribute();
g_request.setCharacterEncoding();
g_request.setParameter();
g_request.siteID();
g_request.startAsync();
g_request.toString();
g_request.updateSessionLastAccessedTime();
g_request.userPrincipal();
g_request.virtual();
g_request.wait();

Jason Butz's profile picture

Jason Butz is a software engineer and cloud architect with a strong focus on JavaScript, TypeScript, Node, and AWS. Jason has a love for open-soure software and a passion for building scalable, secure, and reliable applications.