Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 1.01 KB

microsoft_teams.md

File metadata and controls

37 lines (25 loc) · 1.01 KB

Microsoft Teams Delivery Method

Sends a Teams notification via webhook.

deliver_by :microsoft_teams

Options

  • format: :format_for_teams - Optional

    Use a custom method to define the payload sent to Microsoft Teams. Method should return a Hash. Documentation for posting via Webhooks available at: https://docs.microsoft.com/en-us/microsoftteams/platform/webhooks-and-connectors/how-to/add-incoming-webhook

    {
      title: "This is the title for the card",
      text: "This is the body text for the card",
      sections: [{activityTitle: "Section Title", activityText: "Section Text"}],
      "potentialAction": [{
        "@type": "OpenUri",
        name: "Button Text",
        targets: [{
          os: "default",
          uri: "https://example.com/foo/action"
        }]
      }]
    
    }
  • url: :url_for_teams_channel: - Optional

    Use a custom method to retrieve the MS Teams Webhook URL. Method should return a string.

    Defaults to Rails.application.credentials.microsoft_teams[:notification_url]

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy