Queue - Scoped
-
- UpdatedFeb 1, 2024
- 1 minute read
- Washington DC
- API reference
The Queue API allows 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) should be
enabled to access the Queue API.
Scoped Queue - get(String sysID)
Retrieves a specified chat queue.
Name | Type | Description |
---|---|---|
SysID | String | Sys_id of a queue from the Chat Queue [chat_queue] table. |
Type | Description |
---|---|
Object | Returns a conversation queue object. |
Example
Scoped Queue - join(String question)
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) method to retrieve the chat queue to which to attach the current user.
Name | Type | Description |
---|---|---|
Question | String | Question to add to the chat queue. |
Type | Description |
---|---|
Object | Record (GlideRecord object) in the Chat Queue Entry [chat_queue_entry] table. |