---
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


---

# GlideNotification - Client

# GlideNotification - Client {#ariaid-title1}

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

The GlideNotification API provides methods that display messages over the page content.

Access this API using the `g_notification` global object. List V3 must be activated for the g_notification object to be available.

## GlideNotification - show(String type, String message, Number duration) {#ariaid-title2}

Displays the specified string over the page content as the specified type of message. When the duration timer expires, the message is removed.
Note:  
When using this method in a scoped application, you must specify the associated namespace `nowapi`. For example, `nowapi.g_notification.show("info", "The record has been updated",
10000);`
{#r_GNOTV3-show_S_S__table_yyd_2bc_mv__entry__3}

| Name | Type | Description |
|-|-|-|
| type | String | Type of message to display. Valid values: * error * info * warning |
| message | String | Message to display. |
| duration | Number | Optional. Amount of time to display the message. Unit: Milliseconds Default: 5,000 |
[Table 1. Parameters]

{#r_GNOTV3-show_S_S__table_yyd_2bc_mv} {#r_GNOTV3-show_S_S__table_zyd_2bc_mv__entry__2}

| Type | Description |
|-|-|
| void |   |
[Table 2. Returns]

{#r_GNOTV3-show_S_S__table_zyd_2bc_mv}  

    // Displays an info message at the top of the screen
    g_notification.show("info", "The record has been updated", 10000);
    	 
    // Displays an error message at the top of the screen in a scoped app
    nowapi.g_notification.show("error", "You need to provide notes!");


