MS Teams alerts question. Hello! When running ed...
# community-support
f
MS Teams alerts question. Hello! When running edr monitor, I want to alert via a power automate webhook (not the incoming webhook app in teams) Anyone made that work?
m
Hi @Fabian! We've actually just upgraded the Teams alerts to use the Adaptive Cards format! Previously, the Teams integration used an older message format that isn’t supported in Power Automate workflows. With this update, you can now use both the Power Automate connector and workflow to generate a webhook URL. The CLI usage remains the same—just create a new workflow using the “Post to a channel when a webhook request is received” template, copy the generated URL, and pass it to:
Copy code
edr monitor --teams-webhook <your_teams_webhook_url>
⚠️ Note: This will be included in the forthcoming release. In the meantime, you can install the Elementary CLI from the source: https://docs.elementary-data.com/oss/cli-install#install-from-source Let me know how it works for you and if you need any assistance!
f
Hello. Actually it seems to not work out of the box. I get the post in teams but it only says ”Could not show card”
m
Are you using workflows?
f
Yes exactly
Read something about that version 1.6 of the json schema that is used could be the problemen?
m
Might be that!
Are you able to view one of these workflow runs and see if there were any errors?
f
There were no errors. Everything was OK but the message posted to teams only said ”Cannot show the card”
m
Got it, thanks, I'm taking a look
🙌 1
Hi @Fabian! Can you install from master again and give it another try?
f
Sure will do
🙏 1
Now it just skips the alert
Image from iOS.jpg
m
Unfortunately, the issue with workflows webhooks is that they always return a response indicating success. As a result, Elementary assumes the message was received and displayed successfully. Has there been another dbt run since the last edr monitor execution?
f
Ah my bad I didn’t run another dbt run Let me see
It works now!
m
Great! Thank you for your feedback and help!
f
The slack alert looks a bit more fancy. But this one is really good enough!
Do you know if @ people in the owner/subscriber works in this? To ping people etc?
m
The Slack Blocks Kit offers greater flexibility in UI design, yet we aimed to deliver a consistent experience and identical data across both integrations. We welcome any feedback or contributions if you notice anything missing!
In Teams, tagging individuals in plain text does not work without additional support, unlike Slack. We plan to implement this feature in the future.
f
One question regarding model failures. Not test failures. Is it possible to add the returned database error in the alert maybe? Ex.. MERGE error etc
Now it says that it failed, but not why it failed
m
That makes sense, I'll add it to the alert. Thanks!
🙌 1
Hi @Fabian, we've included the error message in the model error alerts. You can reinstall from the master branch.
f
That’s cool! I will look during the day :) When will this be released so we can pip install? Not from source? :)
m
Hopefully, in the next few days!
🙌 1
We wanted to get some feedback before the release. 🙂
f
Ofc makes sense
Question. If I include job information in my dbt runs (orchestrator, job name, url etc) Is this included in the alert in teams?
If it’s not. It would be really neat if it was to easily access and look at the pipeline that had the errors
Results of database errors are working as expected now! That’s great!
🔥 1
m
The orchestrator data in the alerts sounds great! We will make an effort to address it, but any contributions would be appreciated!
🙌 1
f
Thanks! I appreciate the work done to make the teams alert work! This is so much better than what we have currently :)
🙏 1
m
Thank you so much! I'm glad to hear!
Hi @Fabian, you can now use the newly released version: 0.16.2
🙌 1