TeamsExecution TeamsExecution

yaml
type: "io.kestra.plugin.notifications.teams.TeamsExecution"

Task to send a Microsoft Teams message with the execution informations

Main execution informations are provided in the sent message (id, namespace, flow, state, duration, start date ...).

Examples

Send a Microsoft Teams notification on failed flow

yaml
id: teams
namespace: io.kestra.tests

listeners:
  - conditions:
      - type: io.kestra.core.models.conditions.types.ExecutionStatusCondition
        in:
          - FAILED
    tasks:
      - id: teams
        type: io.kestra.plugin.notifications.teams.TeamsExecution

tasks:
  - id: ok
    type: io.kestra.core.tasks.debugs.Return
    format: "{{task.id}} > {{taskrun.startDate}}"

Properties

activitySubtitle

  • Type: string
  • Dynamic: ✔️
  • Required:

Activity Subtitle

activityTitle

  • Type: string
  • Dynamic: ✔️
  • Required:

Activity Title

customFields

  • Type: object
  • Dynamic: ✔️
  • Required:

Custom fields to be added on notification

customMessage

  • Type: string
  • Dynamic: ✔️
  • Required:

Custom message to be added on notification

executionId

  • Type: string
  • Dynamic: ✔️
  • Required:
  • Default: null

The execution id to use

Default is the current execution

payload

  • Type: string
  • Dynamic: ✔️
  • Required:

Slack message payload

templateRenderMap

  • Type: object
  • Dynamic: ✔️
  • Required:

Map of variables to use for the message template

themeColor

  • Type: string
  • Dynamic: ✔️
  • Required:
  • Default: 0076D7

Theme color

url

  • Type: string
  • Dynamic: ✔️
  • Required:

Slack incoming webhook URL

See Create an Incoming Webhook