TeamsIncomingWebhook TeamsIncomingWebhook

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

Task to send a Microsoft Teams notification message to an incoming webhook.

See Send notifications to a Microsoft Teams channel.

Examples

Send a Microsoft Teams notification message

yaml
id: "teams_incoming_webhook"
type: "io.kestra.plugin.notifications.teams.TeamsIncomingWebhook"
url: "https://microsoft.webhook.office.com/webhook/XXXXXXXXXX"
payload: |
  {
    "@type": "MessageCard",
    "@context": "http://schema.org/extensions",
    "themeColor": "0076D7", 
    "summary": "Notification message",
    "sections": [{  
      "activityTitle": "Rolling Workflow started", 
      "activitySubtitle": "Workflow Notification", 
      "facts": [{ 
        "name": "URL", 
        "value": "[Rolling Workflow](${deploymentUrl}" 
      }],
      "markdown": true
    }]
  }

Properties

payload

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

Microsoft Teams message payload

url

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

Microsoft Teams incoming webhook URL