webhooks
18 TopicsImages in Adaptive Cards in New Teams Client not showing
Hello Community, I've encountered an issue with Teams Webhook Connector where images in Adaptive Cards are not displaying correctly in the New Teams Client, although they work as expected in the classic version. Our clients have reported that while messages are visible, the images fail to appear. This problem does not occur in the classic Teams client or when viewed in a browser, which I presume is utilizing the classic client as well. To clarify, I'm using the latest Adaptive Cards version (v1.5) compatible with Teams, and this issue is consistent across both Windows and Apple versions of the New Teams Client. Unfortunately, there seems to be no information available about this compatibility issue in the Adaptive Cards documentation or designer tool. Below is a simple Adaptive Card JSON that illustrates the problem: { "type": "AdaptiveCard", "body": [ { "type": "TextBlock", "size": "Medium", "weight": "Bolder", "text": "This is a headline" }, { "type": "Image", "url": "https://img.cdn-pictorem.com/uploads/collection/D/DN4DFF8JRC/900_Nature-Art_colorful--paintings.jpg", "width": "300px" } ], "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", "version": "1.5" } For visual reference, here is how the card renders in both clients: Classic Teams Client: New Teams Client: I have not found a workaround yet and would greatly appreciate guidance on how to resolve this issue. Any suggestions or updates regarding the new client's support for Adaptive Cards would be very helpful. Thank you. Best regards17KViews1like43CommentsWorkflow-webhook not tied to user
Hello! We are developing applications in AWS (sorry, guys), and some workloads require posting to Teams channels using webhooks via Workflows (the new webhook way). We are also using webhooks to notify in Teams when Github actions finish or need interactions. However, when creating the webhook in Workflows it only seems possible to tie the webhook to a regular user. Are there any ways to use a Service Account / Service principal as the webhook/workflow owner? Using a regular user account as the webhook owner is a major drawback, eg. the need to rewrite all webhooks if the user quits the company and is disabled in Entra ID. Regards globus68289Views0likes0CommentsOneDrive webhook API occasionally returns a 401 status code
TL;DR: scroll down to the "Questions" section Hello, I am currently working on an integration with OneDrive that manipulates webhook subscriptions to OneDrive drives via the Graph API, using the https://docs.microsoft.com/en-us/onedrive/developer/rest-api/concepts/using-webhooks?view=odsp-graph-online endpoint. Sometimes, without any apparent reason, the API returns a 401 Unauthorized error with a response similar to the one below (this one is the payload of an actual response I got for a https://docs.microsoft.com/en-us/onedrive/developer/rest-api/api/subscription_update?view=odsp-graph-online call): { "error": { "code": "ExtensionError", "message": "Operation: Update; Exception: [Status Code: Unauthorized; Reason: Authentication failed]", "innerError": { "date": "2021-04-16T00:29:11", "request-id": "4f1f55fe-9ac1-4c8c-9d21-529d0d0be1a1", "client-request-id": "4f1f55fe-9ac1-4c8c-9d21-529d0d0be1a1" } } } Retrying the request usually works (yes, retrying the exact same request that returned a 401 Unauthorized error can succeed if retried). To demonstrate this, I attached the logs of 2 other, identical requests: one that failed and another one that succeeded. I obfuscated the auth tokens, but assume that the exact same auth token was used for both. Also assume that the endpoint indicated in the payload existed at the time, and correctly performed the https://docs.microsoft.com/en-us/onedrive/developer/rest-api/concepts/webhook-receiver-validation-request?view=odsp-graph-online. Given that the response payload and headers don't provide any useful information (even the x-ms-ags-diagnostic header is identical between a successful and a failed request), and that the documentation does not mention https://docs.microsoft.com/en-us/onedrive/developer/rest-api/api/subscription_update?view=odsp-graph-online#error-responses to these endpoints and their status codes I wanted to reach out to the community to check if anyone else faced a similar issue. ==Questions== Did anyone experience intermittent 401 Unauthorized status codes from the OneDrive /subscriptions endpoints? If so, how did you handle them? The naiive approach would be to retry the request, except that the outcome of a request that returns a 401 Unauthorized status code is uncertain. For example, sometimes the webhook gets eventually created even when a POST /subscription request apparently fails. Given the nature of the problem, it's hard to come up with a consistent way to test this, but if I discover more information I'll update this post. Thanks!1.7KViews0likes1CommentWebhooks
Hello, so i have problem, because we have created many teams in MS Teams. Inside of those are many channels. We would like to create many webhooks but it's the same URL. For now we have solution that different people have to create webhooks ;/ Does somebody know the other solutions?403Views0likes0CommentsProgrammatically created webhooks are not shown in the UI
Hey, I've created a webhook using a POST request, following this page: https://docs.microsoft.com/en-us/azure/devops/service-hooks/create-subscription?view=azure-devops and the created webhooks are not shown in the `service hooks` tab in the UI of my project. When list the webhooks using the API, I do get the created webhook. Is this behaviour intended? Thanks.1KViews0likes0CommentsWebhooks + Teams + Notifications
Hi there, hoping you can help me with this: I have a Webhook from Zendesk ticketing system to alert to a Teams channel when a high severity ticket is raised. It works perfectly. Problem is, the channel in question is a 'high traffic' one, where most users have notifications turned off. How can I make it such that posts from the Webhook (only) trigger push notifications and don't get buried in the shuffle? Thanks! See sample screenshot.4.3KViews0likes3CommentsEvent Grid for Intune?
Hi! I have an app (TOPdesk) where I am currently trying to integrate with Intune. I have learned that Azure has Event Grids and I can use this to fire off PowerShell Runbooks to execute a PS script which will then send off an HTTP request to connect to my app. The question that came to mind is whether it's possible for Event Grids to listen in to activities from Intune? Basically, I was thinking that whenever a new device is created, the Event Grid can help trigger a runbook to send off a HTTP request to connect to the app. Unfortunately, I have no access to Intune and Event Grid so I cannot confirm this myself. Any insight or alternatives will be appreciated! Thanks!1.2KViews0likes0CommentsAbout incoming webhook
Hi Guys, I would like to know whether there is an API to create custom incoming webhook? I have been through the steps mentioned here https://docs.microsoft.com/en-us/microsoftteams/platform/concepts/connectors/connectors-using#setting-up-a-custom-incoming-webhook, but this involves users input to create incoming webhook. I hope there's a way to do it programmatically, without user's input (with API's ?) Thanks1.5KViews0likes1CommentCORS PREFLIGHT WHEN USE WEBHOOK FOR MICROSOFT TEAMS
Hi, i've created an angular app that send some Adaptive cards to a TEAMS channel created with connector plugin but when i try to post a a json i got following CORS ERROR. Is there a way to fix it? In documentation there is only an example using cUrl and Powershell but not using a frontend app .1.9KViews1like2Comments