1. Select the appropriate team and select **Manage team** from the \(**•••**\) drop-down menu.
1. Select the appropriate team and select **Manage team** from the (**•••**) drop-down menu.
2. Choose the **Apps** tab from the navigation bar.
3. From the window's lower right corner select Create an **outgoing webhook**.
4. In the resulting popup window complete the required fields:
4.In the resulting popup window complete the required fields:
***Name** - The webhook title and @mention tap. \(This will be your bot name in MS Teams\)
***Callback URL** - Paste the URL here we copied from Rocket.Chat.
***Description** - A detailed string that will appear in the profile card and the team-level App dashboard.
***Profile Picture**\(optional\) an app icon for your webhook.
* Select the **Create** button from lower right corner of the pop-up window and the outgoing webhook will be added to the current team's channels.
* **Name** - The webhook title and @mention tap. (This will be your bot name in MS Teams)
* **Callback URL** - Paste the URL here we copied from Rocket.Chat.
* **Description** - A detailed string that will appear in the profile card and the team-level App dashboard.
* **Profile Picture** (optional) an app icon for your webhook.
* Select the **Create** button from lower right corner of the pop-up window and the outgoing webhook will be added to the current team's channels.
_**Note :**_ _The Name We mentioned above will be the bot name so when you send message to Rocket.Chat Mention to Bot example @namebot_
_**Note :**_ _The Name We mentioned above will be the bot name so when you send message to Rocket.Chat Mention to Bot example @namebot_
\_\_
\_\_
## Create Incoming WebHook in MS Teams:
1. Navigate to the **Team** where you want to add the webhook and select \(**•••**\)**More Options** from the top navigation bar and Select **Apps** and select **More apps**.
1. Navigate to the **Team** where you want to add the webhook and select (**•••**) **More Options** from the top navigation bar and Select **Apps** and select **More apps**.
* Choose **Connectors** from the drop-down menu and search for **Incoming Webhook**.
* Select the **Configure** button, provide a name, and, optionally, upload an image avatar for your webhook.
* Select appropriate **Teams** and **Channel**.
...
...
@@ -81,9 +95,9 @@ class Script {
1. Create **Outgoing WebHook** from Integration:
* Select **Message Sent** as **Event Trigger**
* Select the **Channel**\(same as mentioned in Incoming Webhook\)
* Select the **Channel** (same as mentioned in Incoming Webhook)
* Paste the **URL** we copied from Microsoft Teams
* Select Bot **Post as**\(same as in Incoming Webhook\)
* Select Bot **Post as** (same as in Incoming Webhook)