---
sourceDocument: Xanadu API Reference
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/xanadu/api-reference

 Release :

    - xanadu

ft:locale :

    - en-US

ft:publication_title :

    - Xanadu API Reference

ft:clusterId :

    - crapiref

bundleId :

    - crapiref

workflow :

    - Creator


---

# GlideURLV3 - Client

# GlideURLV3 - Client {#ariaid-title1}

* Release version: Xanadu
* 
* Updated August 1, 2024
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

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.

## GlideURLV3 - GlideURL(String contextPath) {#ariaid-title2}

Creates an instance of the GlideURL class.
{#r_GURL-GlideURL_S__table_zzy_jss_pv__entry__3}

| Name | Type | Description |
|-|-|-|
| contextPath | String | A relative path for the URL. |
[Table 1. Parameters]

{#r_GURL-GlideURL_S__table_zzy_jss_pv}

## GlideURLV3 - addParam(String name, String value) {#ariaid-title3}

Adds a query string name-value pair to the URL.
{#r_GURL-addParam_S_S__table_zq5_g5g_qv__entry__3}

| Name | Type | Description |
|-|-|-|
| name | String | Name of the query string parameter. |
| value | String | Query string value. |
[Table 2. Parameters]

{#r_GURL-addParam_S_S__table_zq5_g5g_qv} {#r_GURL-addParam_S_S__table_ar5_g5g_qv__entry__2}

| Type | Description |
|-|-|
| String | The GlideURL |
[Table 3. Returns]

{#r_GURL-addParam_S_S__table_ar5_g5g_qv}  

    var gu = new GlideURL('incident.do');
    var url = gu.addParam('sys_id', '-1');

## GlideURLV3 - getURL(Object additionalParams) {#ariaid-title4}

Get the entire context path and query string parameters as a single URI.
{#r_GURL-getURL_O__table_kbz_5vg_qv__entry__3}

| Name | Type | Description |
|-|-|-|
| additionalParams | Object | A 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. |
[Table 4. Parameters]

{#r_GURL-getURL_O__table_kbz_5vg_qv} {#r_GURL-getURL_O__table_lbz_5vg_qv__entry__2}

| Type | Description |
|-|-|
| String | The GlideURL with the specified additional parameters added to the end. |
[Table 5. Returns]

{#r_GURL-getURL_O__table_lbz_5vg_qv}

