User Profile
ameenv
Copper Contributor
Joined 2 years ago
User Widgets
Recent Discussions
Unable to send an image attachment to the incoming webhook in Teams
We have a teams bot app, as well as an integration with incoming webhook. The usecase here is, to send an image to a teams channel using incoming webhook. Its working fine when we send the image though the bot chat. with this format. { "type": "message", "attachments": [ { "contentType": "application/vnd.microsoft.card.adaptive", "content": { "type": "AdaptiveCard", "body": [ { "type": "ActionSet", "actions": [ { "type": "Action.OpenUrl", "title": "View in Datafi", "style": "default", "role": "Link", "url": "https://abc.us", "tooltip": "View in abc" } ] } ], "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", "version": "1.0" } }, { "contentType": "image/jpeg", "contentUrl": "data:application/jpeg;base64,/xxxxxxxx" } ] } When trying to send the same with the incoming webhook, its failing with error "Webhook message delivery failed with error: Microsoft Teams endpoint returned HTTP error 400 with ContextId 01=2..". What's the best way to send the same content using incoming webhook Contents: 1. a base64 encoded image (its a screenshot of a dashboard) 2. link to the full versionSolved2.8KViews0likes3Comments
Groups
Recent Blog Articles
No content to show