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


---

# Use the client GlideList API in the Workspace Experience UI

# Use the client GlideList API in the Workspace Experience UI {#ariaid-title1}

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

Add a custom button to the Agent Workspace Lists page that returns
list information in the current view. Define the information to return by adding client
GlideList API methods to an action assignment.

## Before you begin

Role required: admin

[GlideList](https://servicenow-prod.fluidtopics.net/M_B3s_ODNuFgKelweNBx2w#GlideListClientAPINEx "The GlideList API provides methods to customize lists in the Next Experience UI Framework.") API methods are provided in the Action
Assignments \[sys_declarative_action_assignment\] List Action
view. You can add GlideList functionality to a custom button in
the Workspace Experience UI. You can use the button to apply a
GlideList method to the current view. Use the
GlideList methods to manage table lists by getting list view
details, setting filters, sorting by column, and more.

## Procedure

1. Navigate to AllWorkspace ExperienceActions \& ComponentsList Actions.  
   If you are using [getFixedQuery()](https://servicenow-prod.fluidtopics.net/M_B3s_ODNuFgKelweNBx2w#GlideListClientAPINEx "The GlideList API provides methods to customize lists in the Next Experience UI Framework."), navigate to Related List Actions instead of List Actions.
2. Create a new action assignment by selecting New.
3. In the Action label field, type a button label.
4. Type a name into the Action name field.  
   Providing text in this field ensures that you can add multiple buttons to the view.
5. From the Implemented as menu, select Client Script.
6. Right-click in the form header and select Save.
7. Select Advanced View.
8. Select the Client Script tab and add one or more method calls into the `onClick{}` method definition.  
   This method defines what actions to take when the button is selected. For a list of available methods, see [GlideList (Now Experience)](https://servicenow-prod.fluidtopics.net/M_B3s_ODNuFgKelweNBx2w#GlideListClientAPINEx "The GlideList API provides methods to customize lists in the Next Experience UI Framework.").
9. Select Update.  
   You can test your button in a Workspace Experience table list view.  
   Note:  
   If the button uses the [getFixedQuery()](https://servicenow-prod.fluidtopics.net/M_B3s_ODNuFgKelweNBx2w#GlideListClientAPINEx "The GlideList API provides methods to customize lists in the Next Experience UI Framework.") method, select the tab on a record in a Workspace Experience list to test your button.  
   The following table illustrates successful button implementation in the Agent Workspace Incidents (All) table. The button implements the GlideList addFilter() method to display only active records.{#add-api-glide__table_bzt_dtx_msb__entry__2}

   | List before clicking | List after clicking |
   |-|-|
   | Before selecting the button, an assortment of active and inactive (closed) records display in the view. | Selecting the button filters the view to display only active records. |
   [Table 1. Example button action applying a filter to a list]

   {#add-api-glide__table_bzt_dtx_msb}

*[\>]: and then


