{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":887,"path":"api-reference/server-api-reference/QueueScopedAPI.md","title":"Queue - Scoped","bundle":null,"doc_type":null,"release":"australia","body":"\n# Queue- Scoped\n\nThe Queue API provides methods that allow you to retrieve or join a Connect Support chat queue.\n\nTo 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.\n\n**Parent Topic:**[Server API reference](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/server-api-reference/api-server.md)\n\n## Scoped Queue - get\\(String sysID\\)\n\nRetrieves a specified chat queue.\n\n|Name|Type|Description|\n|----|----|-----------|\n|SysID|String|Sys\\_id of a queue from the Chat Queue \\[chat\\_queue\\] table.|\n\n|Type|Description|\n|----|-----------|\n|Object|Returns a conversation queue object.|\n\n```\nvar queue = sn_connect.Queue.get(\"ab73be7dc09a4300964f336ee6b74361\");\n```\n\n## Scoped Queue - join\\(String question\\)\n\nAdds the current user to an existing Connect Support chat queue and posts the specified question.\n\nBefore calling this method, you must call the [Scoped Queue - get\\(String sysID\\)](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/server-api-reference/QueueScopedAPI.md) method to retrieve the chat queue to which to attach the current user.\n\n|Name|Type|Description|\n|----|----|-----------|\n|Question|String|Question to add to the chat queue.|\n\n|Type|Description|\n|----|-----------|\n|Object|Record \\(GlideRecord object\\) in the Chat Queue Entry \\[chat\\_queue\\_entry\\] table.|\n\n```\nvar queue = sn_connect.Queue.get(\"ab73be7dc09a4300964f336ee6b74361\");\nqueue.join(\"How do I access my email?\");\n```\n\n"}}