|
| 1 | +--- |
| 2 | +title: Quickstart - Teams Call Queue on Azure Communication Services |
| 3 | +titleSuffix: An Azure Communication Services quickstart |
| 4 | +description: In this quickstart, you learn how to create and join a Teams call queue with the Azure Communication Calling SDK. |
| 5 | +author: ruslanzdor |
| 6 | +ms.author: ruslanzdor |
| 7 | +ms.date: 07/14/2023 |
| 8 | +ms.topic: quickstart |
| 9 | +ms.service: azure-communication-services |
| 10 | +ms.subservice: calling |
| 11 | +ms.custom: mode-other, devx-track-js |
| 12 | +--- |
| 13 | + |
| 14 | +# Quickstart: Join your calling app to a Teams call queue |
| 15 | + |
| 16 | +In this quickstart you are going to learn how to start a call from Azure Communication Services user to Teams Call Queue. You are going to achieve it with the following steps: |
| 17 | + |
| 18 | +1. Enable federation of Azure Communication Services resource with Teams Tenant. |
| 19 | +2. Select or create Teams Call Queue via Teams Admin Center. |
| 20 | +3. Get email address of Call Queue via Teams Admin Center. |
| 21 | +4. Get Object ID of the Call Queue via Graph API. |
| 22 | +5. Start a call with Azure Communication Services Calling SDK. |
| 23 | + |
| 24 | +If you'd like to skip ahead to the end, you can download this quickstart as a sample on [GitHub](https://github.com/Azure-Samples/communication-services-javascript-quickstarts/tree/main/add-1-on-1-cte-video-calling). |
| 25 | + |
| 26 | +## Create or select Teams Call Queue |
| 27 | + |
| 28 | +Teams Call Queue is a feature in Microsoft Teams that efficiently distributes incoming calls among a group of designated users or agents. It's useful for customer support or call center scenarios. Calls are placed in a queue and assigned to the next available agent based on a predetermined routing method. Agents receive notifications and can handle calls using Teams' call controls. The feature offers reporting and analytics for performance tracking. It simplifies call handling, ensures a consistent customer experience, and optimizes agent productivity. You can select existing or create new Call Queue via [Teams Admin Center](https://aka.ms/teamsadmincenter). |
| 29 | + |
| 30 | +Learn more about how to create Auto Attendant using Teams Admin Center [here](/microsoftteams/create-a-phone-system-auto-attendant?tabs=general-info). |
| 31 | + |
| 32 | +## Find Object ID for Call Queue |
| 33 | + |
| 34 | +After Call queue is created, we need to find correlated Object ID to use it later for calls. Object ID is connected to Resource Account that was attached to call queue - open [Resource Accounts tab](https://admin.teams.microsoft.com/company-wide-settings/resource-accounts) in Teams Admin and find email. |
| 35 | +:::image type="content" source="../media/teams-call-queue-resource-account.PNG" alt-text="Screenshot of Resource Accounts in Teams Admin Portal."::: |
| 36 | +All required information for Resource Account can be found in [Microsoft Graph Explorer](https://developer.microsoft.com/en-us/graph/graph-explorer) using this email in the search. |
| 37 | + |
| 38 | +```console |
| 39 | +https://graph.microsoft.com/v1.0/users/[email protected] |
| 40 | +``` |
| 41 | + |
| 42 | +In results we'll are able to find "ID" field |
| 43 | + |
| 44 | +```json |
| 45 | + "userPrincipalName": "[email protected]", |
| 46 | + "id": "31a011c2-2672-4dd0-b6f9-9334ef4999db" |
| 47 | +``` |
| 48 | + |
| 49 | +[!INCLUDE [Call Queue with JavaScript](./includes/teams-call-queue/teams-call-queue-javascript.md)] |
| 50 | + |
| 51 | +## Clean up resources |
| 52 | + |
| 53 | +If you want to clean up and remove a Communication Services subscription, you can delete the resource or resource group. Deleting the resource group also deletes any other resources associated with it. Learn more about [cleaning up resources](../create-communication-resource.md#clean-up-resources). |
| 54 | + |
| 55 | +## Next steps |
| 56 | + |
| 57 | +For more information, see the following articles: |
| 58 | + |
| 59 | +- Check out our [calling hero sample](../../samples/calling-hero-sample.md) |
| 60 | +- Get started with the [UI Library](../ui-library/get-started-composites.md) |
| 61 | +- Learn about [Calling SDK capabilities](./getting-started-with-calling.md) |
| 62 | +- Learn more about [how calling works](../../concepts/voice-video-calling/about-call-types.md) |
0 commit comments