Skip to content

Instantly share code, notes, and snippets.

View dardourimohamed's full-sized avatar

Mohamed Dardouri dardourimohamed

  • @mahdCompany
  • Tunisia
View GitHub Profile
@dardourimohamed
dardourimohamed / message-teams.js
Created November 3, 2020 15:22
Send Adaptive card to MS Teams channel using REST JavaScript
const axios = require("axios");
/*
1- In Microsoft Teams, choose More options (⋯) next to the channel name and then choose Connectors.
2- Scroll through the list of Connectors to Incoming Webhook, and choose Add.
3- Enter a name for the webhook, upload an image to associate with data from the webhook, and choose Create.
4- Replace the webhook URL into this variable.
*/
const webhookURL = "https://outlook.office.com/webhook/XXXXX...XXXXX/IncomingWebhook/XXXXX...XXXXX";