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


---

# Queue - Scoped

# Queue - Scoped {#ariaid-title1}

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

The Queue API provides methods that allow you to retrieve or join a Connect Support chat queue.

To execute this class in a scoped application, use the `sn_connect` namespace identifier. The Connect Scriptable APIs plugin (ID: com.glide.connect.scriptable) must be enabled to access the Queue
API.

## Scoped Queue - get(String sysID) {#ariaid-title2}

Retrieves a specified chat queue.
{#queue-get-string__table_qbp_5l2_wbb__entry__3}

| Name | Type | Description |
|-|-|-|
| SysID | String | Sys_id of a queue from the Chat Queue \[chat_queue\] table. |
[Table 1. Parameters]

{#queue-get-string__table_qbp_5l2_wbb} {#queue-get-string__table_rbp_5l2_wbb__entry__2}

| Type | Description |
|-|-|
| Object | Returns a conversation queue object. |
[Table 2. Returns]

{#queue-get-string__table_rbp_5l2_wbb}  

    var queue = sn_connect.Queue.get("ab73be7dc09a4300964f336ee6b74361");

## Scoped Queue - join(String question) {#ariaid-title3}

Adds the current user to an existing Connect Support chat queue and
posts the specified question.
Before calling this method, you must call the [Scoped Queue - get(String sysID)](https://servicenow-prod.fluidtopics.net/0bztZ5sbm3l8RqXCVCIdjA#queue-get-string "Retrieves a specified chat queue.") method
to retrieve the chat queue to which to attach the current user.
{#queue-join_String__table_xcb_kq2_wbb__entry__3}

| Name | Type | Description |
|-|-|-|
| Question | String | Question to add to the chat queue. |
[Table 3. Parameters]

{#queue-join_String__table_xcb_kq2_wbb} {#queue-join_String__table_ycb_kq2_wbb__entry__2}

| Type | Description |
|-|-|
| Object | Record (GlideRecord object) in the Chat Queue Entry \[chat_queue_entry\] table. |
[Table 4. Returns]

{#queue-join_String__table_ycb_kq2_wbb}  

    var queue = sn_connect.Queue.get("ab73be7dc09a4300964f336ee6b74361");
    queue.join("How do I access my email?");


