Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

GlideURLV3- Client

The GlideURLV3 API provides methods for manipulating a URI.

You can only use this API in client-side scripts using ListV2 and ListV3 APIs.

Note: This API is not supported by Service Portal, Now Mobile, or Agent Workspace.

Parent Topic:Client API reference

GlideURLV3 - GlideURL(String contextPath)

Creates an instance of the GlideURL class.

NameTypeDescription
contextPathStringA relative path for the URL.

GlideURLV3 - addParam(String name, String value)

Adds a query string name-value pair to the URL.

NameTypeDescription
nameStringName of the query string parameter.
valueStringQuery string value.
TypeDescription
StringThe GlideURL
var gu = new GlideURL('incident.do');
var url = gu.addParam('sys_id', '-1');

GlideURLV3 - getURL(Object additionalParams)

Get the entire context path and query string parameters as a single URI.

NameTypeDescription
additionalParamsObjectA name-value pair object that contains parameters that are added to this URL request only. These additional parameters are not saved to the GlideURL object.
TypeDescription
StringThe GlideURL with the specified additional parameters added to the end.