Brian's Integration and Automation Notes
  • Welcome!
  • Allow Me to Brag a Bit
  • About
  • Integrations
    • ConnectWise Home
      • Authentication
      • API Documentation
  • Automations
    • Teams Notifications Azure Bot
      • Acknowledgement
      • Considerations
      • The Basics/Getting Started
        • Create a Response Handler Workflow in Rewst
        • Getting the IDs from Teams
      • Two Stage Message Process
        • Formatting the Initial Message
        • Getting the Message IDs
        • Formatting the Message Update
      • Formatting Action Buttons
        • Approve/Deny
        • Assign Resource to Ticket
      • Working with the Responses
      • System Incident/Maintance Notifications
        • Admitting Defeat on the Database
        • The Workflow Structure
      • Resources
    • Automated GitHub/GitBook Update Notifications
      • Prerequisites
      • 1. Set up a Basic Workflow
      • 2. Fork the GitHub Repository
      • 3. Set up Automatic Updates
      • 4. Set up notifications in GitHub
      • 5. Set up Remaining Workflow Actions
  • ConnectWise PSA Actions
    • About
    • Assigning Resources to Tickets
    • Ticket Assignment Note
    • Unbundle Ticket
    • Sales Activity Assignment Note
Powered by GitBook
On this page
  1. Automations
  2. Teams Notifications Azure Bot
  3. Two Stage Message Process

Formatting the Initial Message

Below is the basic format of the JSON you want to send to your bot to create the initial message

{
  "activity": {
    "type": "message",
    "summary": "Set this to a summary that you want to appear in the desktop/mobile notification in Teams",
    "attachments": [
      {
        "contentType": "application/vnd.microsoft.card.adaptive",
        "contentUrl": null,
        "content": {
          "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
          "type": "AdaptiveCard",
          "version": "1.5",
          "body": [
            // Here you will place all of the JSON for the various pieces of your message that you want to send to Teams. I recommend using the Adaptive Card Designer and Actionable Messages Designers to figure out the formatting.
          ],
          "padding": "None",
          "msteams": {
            "width": "Full"
          }
        }
      }
    ]
  },
  "bot": {
    "id": "YOUR_BOT_ID",
    "name": "YOUR_BOT_NAME"
  },
  "channelData": {
    "team": {
      "id": "TEAM_ID"
    },
    "tenant": {
      "id": "TENANT_ID"
    },
    "channel": {
      "id": "CHANNEL_ID"
    },
    "teamsTeamId": "TEAM_ID",
    "teamsChannelId": "CHANNEL_ID"
  },
  "isGroup": true,
  "tenantId": "TENANT_ID"
}
PreviousTwo Stage Message ProcessNextGetting the Message IDs

Last updated 1 year ago