Skip to main content

Teams

The Teams notifier adds support to route messages to Teams using Incoming Webhooks With Workflows.

Creating a Teams Incoming Webhook

Follow the instructions on the Microsoft website to create an Incoming Webhook.

info

The Teams notifier currently does not support authentication. When asked "Who can trigger the flow?" you should answer "Anyone".

Dependency

dependencies {
testImplementation("nl.vanwollingen.alerticorn:alerticorn-teams-workflow-notifier:0.1") //To use Teams
}

Shorthand Annotation

@Teams can be used as a shorthand for @Message.Platform("Teams")

Example of using @Teams
@Teams
@Message(title = "This would go to Teams")
@Test
fun test() {
//...
}

Configuration

Configure environment variables with AC_TEAMS_CHANNEL_<your channel name> to hold the channel webhooks.