Do we have any existing source code or implementat...
# ask-elementary-ai
n
Do we have any existing source code or implementation for sending edr send-report to Microsoft Teams, similar to the Slack notification format that includes pass, fail, error, and warning status details?
k
A message from kapa.ai
Based on the knowledge sources provided, Elementary does not support sending the
edr send-report
command to Microsoft Teams
. The Teams integration is limited to alerts only. According to the [Teams setup documentation](https://docs.elementary-data.com/oss/deployment-and-configuration/teams): > MS Teams supports Elementary Alerts, but unlike Slack, it does not support the Elementary report or multiple channels. The available Teams integration only works with the
edr monitor
command for sending alerts (which include test failures, warnings, and errors), not with
edr send-report
for sending the full HTML report with summary statistics. ## What is supported for Teams: Elementary supports sending alerts to Microsoft Teams using the
edr monitor
command with the Adaptive Cards format. These alerts include information about test failures, warnings, and errors. The command syntax is:
Copy code
bash edr monitor --teams-webhook <your_teams_webhook_url>
As mentioned in the [GitHub issue discussion](https://github.com/elementary-data/elementary/issues/1644), version 0.16.2 introduced support for Adaptive Cards format, which works with both Power Automate workflows and webhook connectors. ## Alternative for report summaries: If you need to send report summaries to Teams similar to what Slack provides, the knowledge sources indicate this is not currently implemented. According to a [Slack discussion](https://slack.com/archives/C02CTC89LAX/p1707172826060189), the summary feature that shows passed/warning/failed tests counts exists for Slack but "such a thing is not supported currently for s3/email" - and by extension, not for Teams either.
n
@kapa.ai Slack already has the report logic in the backend. Can we reuse or extract that logic to send the same report to Microsoft Teams?
k
A message from kapa.ai
Based on the knowledge sources provided, the report functionality for Slack cannot currently be reused for Microsoft Teams. The Teams integration is fundamentally different from the Slack integration in terms of what it supports. According to the [Teams setup documentation](https://docs.elementary-data.com/oss/deployment-and-configuration/teams): > MS Teams supports Elementary Alerts, but unlike Slack, it does not support the Elementary report or multiple channels. ## Key differences between Slack and Teams integrations: 1. Slack supports both: - Alerts (via
edr monitor
) - Full reports (via
edr send-report
) 2. Teams only supports: - Alerts (via
edr monitor
) using Adaptive Cards format ## What Teams currently receives: The Teams integration uses the Adaptive Cards format for alerts, which was recently implemented. According to a [Slack discussion](https://slack.com/archives/C02CTC89LAX/p1736849073966839), the Teams alerts were upgraded to use Adaptive Cards format, and a community member noted: > The slack alert looks a bit more fancy. But this one is really good enough! This suggests that while Teams alerts provide similar information to Slack alerts, they may not have the same rich formatting or comprehensive report summary that Slack's
edr send-report
provides. ## Current status: The knowledge sources do not indicate any plans or existing code to extend the
edr send-report
functionality to Teams. The Teams integration appears to be specifically designed for alerts only, not for sending comprehensive reports with pass/fail/error/warning statistics in the same format as Slack. If you need this functionality, it would likely require a feature request or contribution to the Elementary project, as it's not currently available.