AdaptiveCard
7 TopicsAdaptive card 'Toggle visibility' function stopped working in the New MS Teams
Toggle visibility function in adaptive cards stopped working in the new version of MS Teams. The issue is not reproducible in the older version of MS Teams. It can be reproduced in developer portal with the following card structure example: { "type": "AdaptiveCard", "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", "version": "1.4", "body": [ { "type": "Container", "items": [ { "type": "TextBlock", "text": "Request", "size": "Large", "wrap": true, "weight": "Bolder", "spacing": "Small", "horizontalAlignment": "Center" }, { "type": "TextBlock", "text": "Please provide your contact information", "wrap": true, "spacing": "Medium" }, { "type": "Container", "items": [ { "type": "ColumnSet", "columns": [ { "type": "Column", "width": "stretch", "items": [ { "type": "TextBlock", "text": "Contact Data", "wrap": true, "style": "default", "fontType": "Default", "size": "Medium", "weight": "Bolder" } ] }, { "type": "Column", "width": "20px", "items": [ { "type": "Image", "url": "https://adaptivecards.io/content/up.png", "id": "chevronUp1" }, { "type": "Image", "url": "https://adaptivecards.io/content/down.png", "id": "chevronDown1", "isVisible": false } ], "selectAction": { "type": "Action.ToggleVisibility", "targetElements": [ "contactData", "chevronDown1", "chevronUp1" ] } } ] }, { "type": "Container", "items": [ { "type": "Input.Text", "id": "rt_user_first_name", "errorMessage": "Please input contact person first name", "label": "First Name", "spacing": "Small", "value": "{{memory.rt_user_first_name}}", "isRequired": true }, { "type": "Input.Text", "label": "Last Name", "id": "rt_user_last_name", "errorMessage": "Please input contact person last name", "spacing": "Small", "value": "{{memory.rt_user_last_name}}", "isRequired": true }, { "spacing": "Small", "regex": "^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,4}$", "isRequired": true, "value": "{{memory.rt_user_email}}", "placeholder": "email address removed for privacy reasons", "label": "Email", "type": "Input.Text", "id": "rt_user_email", "errorMessage": "Please provide the contact person email" }, { "spacing": "Small", "regex": "^[+][0-9]{10,12}$", "maxLength": 13, "value": "{{memory.rt_user_phone_number}}", "placeholder": "+1", "label": "Phone Number", "type": "Input.Text", "id": "rt_user_phone_number", "errorMessage": "Asking you to kindly enter the phone number in the international format, starting with +, then the country code, operator code and your local number." } ], "id": "contactData", "spacing": "Small" } ] } ] }, { "type": "Container", "items": [ { "type": "ActionSet", "actions": [ { "type": "Action.Submit", "title": "Submit" } ] } ] } ] }1.1KViews3likes7CommentsNew Microsoft Teams issue, This bot is disabled. Contact your IT admin for more information
This issue is happening only on new Microsoft Teams desktop application for some selected users. It works fine with old Teams classic and new browser application for all users. Senario: When an effected users click on adaptive card button, user is getting error "This bot is disabled. Contact your IT admin for more information". Also issue gets resolved automatic after few hours. Then some other set of users start facing the same issue.3.5KViews0likes12CommentsPosting adaptivecard to teams incoming webhooks
I have encountered a strange issue that I cannot get past. It has to do with MS Teams incoming webhooks and AdaptiveCards. The issue is that webhooks on some (not all) channels have stopped working. They worked initially for a good month or so before some stopped working. I have been able to verify that when a webhook stops working for a given channel that I cannot create a new webhook for the channel that will work, at least not for the payload that is required. The AdaptiveCard payloads always include "actions". However, while troubleshooting I noticed that if I remove the actions section from the AdaptiveCard that the webhook will accept the POST. Has anyone encountered anything like this? Below are a couple sample payloads that I can use to demonstrate this issue in our teams server. The first one includes the `actions` section and will always fail on a channel that has become corrupted. The second one is the same payload as the first, but it omits the problematic `actions` section. NOTE: both payloads can be successfully posted to an incoming webhook on a channel that is not corrupted. NOTE, I am suggesting the channel is corrupted because that is the best way to describe the symptoms I am experiencing. 1. payload with `actions`: { "type": "message", "attachments": [ { "contentType": "application/vnd.microsoft.card.adaptive", "contentUrl": null, "content": { "type": "AdaptiveCard", "schema": "http://adaptivecards.io/schemas/adaptive-card.json", "version": "1.6", "body": [ { "text": "🚀 testing", "wrap": true, "size": "Large", "weight": "Bolder", "color": "Good", "type": "TextBlock" }, { "facts": [ { "title": "DeploymentId: ", "value": "dep-id-123" } ], "type": "FactSet" }, { "actions": [ { "title": "GitHub Org", "url": "https://github.com/myriadgenetics", "type": "Action.OpenUrl" } ], "separator": true, "spacing": "Default", "height": "Automatic", "holizontalAlignment": "Left", "type": "ActionSet" } ] } } ] } 2. payload w/o `actions`:5.9KViews0likes7CommentsHyperlink in an AdaptiveCard Input.Toggle (either "text" or "label") is not rendering in Teams
I'm using the following JSON to specify a link in the text (and I also tried the label) of an Input.Toggle, but it does not work in Teams. It does work in the AdaptiveCards simulator, but not in the actual Teams product. Links do work within regular text blocks. Example JSON: { "type": "TextBlock", "text": "Please accept the [Terms of Service](https://snapinstruct.com/tos) and [Privacy Policy](https://snapinstruct.com/privacy).", "wrap": true }, { "type": "Input.Toggle", "title": "I accept the [Terms of Service](https://snapinstruct.com/tos)", "id": "acceptTos", "isRequired": true, "errorMessage": "Accepting the Terms of Service is required", "wrap": true, "label": "[Terms of Service](https://snapinstruct.com/tos)" }, { "type": "Input.Toggle", "title": "I accept the [Privacy Policy](https://snapinstruct.com/privacy)", "id": "acceptPrivacy", "isRequired": true, "errorMessage": "Accepting the Privacy Policy is required", "wrap": true, "label": "Privacy Policy" }803Views0likes2CommentsSearch and Filter adaptive cards in bot
Hello Team, Our requirement is as follows: Requirement : We have created a bot using teams toolkit. We further want to add a search bar within the bot which will search adaptive cards and filter them. As in show only searched cards and hide rest. Is it possible to add search bar in bot? One option we could think of is creating tab using fluent so that we can search the adaptive cards. Is their any way to directly implement it in a bot? Thanks!1.2KViews0likes5CommentsForward Adaptive Card
How can we forward adaptive cards in teams. Is there any easy way out? One method which I found was using Graph API. Following the below link with Example 3 : Send a message containing cards :- https://learn.microsoft.com/en-us/graph/api/chatmessage-post?view=graph-rest-1.0&tabs=javascript#examples But it has html content, how to add json content to it. Please can anyone help with this?3.3KViews0likes8CommentsSending a Teams Message from Power Automate with Mention is failing
Hi, we are using a Power Automate Flow to send Teams Messages. This Flow is activated from a http call. But we are getting constant errors "Message mention text needs to be specified." This is the json for the adaptive card: { "contentType": "application/vnd.microsoft.card.adaptive", "content": { "type": "AdaptiveCard", "body": [ { "type": "TextBlock", "text": "Hi <at>John</at>" } ], "$schema": "https://adaptivecards.io/schemas/adaptive-card.json", "version": "1.4", "msteams": { "entities": [ { "type": "mention", "text": "<at>John</at>", "mentioned": { "id": "{Office365 User GUID}", "name": "John Doe" } } ] } } } Any Ideas how to solve this? for the User Id i tried my email and also the guid from the Graph Api Explorer...Solved5.2KViews0likes10Comments