-
Notifications
You must be signed in to change notification settings - Fork 533
Closed
Labels
doc-enhancementIf feedback is about suggested improvements/additions, but no evidence customer was blocked.If feedback is about suggested improvements/additions, but no evidence customer was blocked.teams-developer-supportQuestion related to extensibility (Bot, ME, Tab) would be marked under this labelQuestion related to extensibility (Bot, ME, Tab) would be marked under this label
Description
Kindly help to update the JavaScript code example;
var formatted_Card_Payload = {
"type": "message",
"attachments": [
{
"contentType": "application/vnd.microsoft.card.adaptive",
"contentUrl": null,
"content": {
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.2",
"body": [
{
"type": "TextBlock",
"text": "Submitted response:"+ response
}
]
}
}
]
}
var webhookUrl = "https://xxxxx.webhook.office.com/xxxxxxxxx";
axios.post(webhookUrl , formatted_Card_Payload )
.then(res => {
console.log(`statusCode: ${res.status}`)
console.log(res)
})
.catch(error => {
console.error(error)
})
Also, help to update the sample code reference like with: https://github.com/OfficeDev/Microsoft-Teams-Samples/blob/main/samples/incoming-webhook/nodejs/api/server/index.js#L28
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
- ID: 90ff2a84-a8bc-9259-d37d-622b102df75b
- Version Independent ID: e3b53e27-2946-189c-623b-9df704ea8f12
- Content: Create an Incoming Webhook - Teams
- Content Source: msteams-platform/webhooks-and-connectors/how-to/add-incoming-webhook.md
- Service: msteams
- GitHub Login: @surbhigupta
- Microsoft Alias: surbhigupta
Metadata
Metadata
Assignees
Labels
doc-enhancementIf feedback is about suggested improvements/additions, but no evidence customer was blocked.If feedback is about suggested improvements/additions, but no evidence customer was blocked.teams-developer-supportQuestion related to extensibility (Bot, ME, Tab) would be marked under this labelQuestion related to extensibility (Bot, ME, Tab) would be marked under this label
