Queue - Global
concept australia Updated Sep 10, 2026 1 min read c_QueueAPI.md
The Queue API (Advanced Work Assignment) provides methods to route a document to a queue.
This API is provided within the sn_awa namespace.
Requires the following:
- Advanced Work Assignment plugin (com.glide.awa)
- Role: awa_integration_user or admin
Parent Topic:Server API reference
Queue - get(String queue_id)
Gets a queue record by sys_id.
| Name | Type | Description |
|---|---|---|
| queue_id | String | Represents sys_id of queue record from awa_queue table |
| Type | Description |
|---|---|
| Boolean | True if queue record exists, false otherwise. |
JavaScript
var queue = sn_awa.Queue.get("<queue_id>");var workItem = queue.route({ document_sys_id: "<sys_id>", document_table: "<table>"});Queue – route(Object options)
Routes an active work item to the queue object.
If an active work item does not exist for the specified document, this method creates a work item and set its fields accordingly.
|
Name |
Type |
Description |
|---|---|---|
|
options |
Object |
Contains document sys_id and table associated with work item:-
|
JavaScript
var queue = sn_awa.Queue.get("<queue_id>");var workItem = queue.route({ document_sys_id: "<sys_id>", document_table: "<table>"});92 lines · 2.3 KB
---
title: Queue - Global
description: The Queue API \(Advanced Work Assignment\) provides methods to route a document to a queue.Gets a queue record by sys\_id.Routes an active work item to the queue object.
locale: en-US
canonical_url: https://www.servicenow.com/docs/r/australia/api-reference/server-api-reference/c\_QueueAPI.html
release: australia
product: Server API Reference
classification: server-api-reference
topic_type: concept
last_updated: "2026-09-10"
reading_time_minutes: 1
breadcrumb: [Server API reference, API reference, API implementation and reference]
---
# Queue- Global
The Queue API \(Advanced Work Assignment\) provides methods to route a document to a queue.
This API is provided within the `sn_awa` namespace.
Requires the following:
- Advanced Work Assignment plugin \(com.glide.awa\)
- Role: awa\_integration\_user or admin
**Parent Topic:**[Server API reference](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/server-api-reference/api-server.md)
## Queue - get\(String queue\_id\)
Gets a queue record by sys\_id.
|Name|Type|Description|
|----|----|-----------|
|queue\_id|String|Represents sys\_id of queue record from awa\_queue table|
|Type|Description|
|----|-----------|
|Boolean|True if queue record exists, false otherwise.|
```
var queue = sn_awa.Queue.get("<queue_id>");
var workItem = queue.route({
document_sys_id: "<sys_id>",
document_table: "<table>"
});
```
## Queue – route\(Object options\)
Routes an active work item to the queue object.
If an active work item does not exist for the specified document, this method creates a work item and set its fields accordingly.
<table id="table_hqw_pbm_yfb" class="parameters"><thead><tr><th>
Name
</th><th>
Type
</th><th>
Description
</th></tr></thead><tbody><tr><td>
options
</td><td>
Object
</td><td>
Contains document sys\_id and table associated with work item:- `document_sys_id: "<sys_id>"`
- `document_table: "<table>"`, e.g., interaction
</td></tr></tbody>
</table>|Type|Description|
|----|-----------|
|Boolean|True if successful, error message otherwise.|
```
var queue = sn_awa.Queue.get("<queue_id>");
var workItem = queue.route({
document_sys_id: "<sys_id>",
document_table: "<table>"
});
```
| title | Queue - Global |
| description | The Queue API \(Advanced Work Assignment\) provides methods to route a document to a queue.Gets a queue record by sys\_id.Routes an active work item to the queue object. |
| locale | en-US |
| canonical_url | https://www.servicenow.com/docs/r/australia/api-reference/server-api-reference/c\_QueueAPI.html |
| release | australia |
| product | Server API Reference |
| classification | server-api-reference |
| topic_type | concept |
| last_updated | 2026-09-10 |
| reading_time_minutes | 1 |
| breadcrumb | Server API referenceAPI referenceAPI implementation and reference |