-
Notifications
You must be signed in to change notification settings - Fork 154
Description
Notify version:
1.0.2
Current Behavior:
While not fully documented I am looking to use the Teams provider. I read the code and saw a couple of parameters are required including the teams webhook url and message format.
The webhook I have been generated is for a corporate enviroment and is formatted as: Company.webhook.office.com/Webhook_details...
However, the MS teams connection code is currently configured with a hardcoded URL to be: https://outlook.office.com/webhook/. This is causing an issue as companies with corporate MS Teams that are unable to use this plugin and are having to resort to a custom connector configuration. This code is found under "notify/pkg/providers/teams/teams.go"
If anyone else is reading this and is looking for the custom connector code for teams as a work around please see below and add into the provider-config.yaml:
custom:
- id: webhook
custom_webhook_url: "YOUR TEAMS WEBHOOK URL"
custom_method: POST
custom_format: '{"text": "{{data}}"}'
custom_headers:
Content-Type: application/json
Expected Behavior:
I expected the MS Teams connector to parse the Full webhook url and send the MS Teams message. This can be parsed through the existing "teams_webhook_url" parameter.
Steps To Reproduce:
Please see the teams.go file and see line 41.