Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Templates language is not supported in Teams #294

Open
karolyxy opened this issue Sep 15, 2021 · 0 comments
Open

Templates language is not supported in Teams #294

karolyxy opened this issue Sep 15, 2021 · 0 comments

Comments

@karolyxy
Copy link

I have tried to use template language in my adaptive cards posted in Teams chat. However, my $data is simply being ignored and cannot be launched. I basically follow the expense report sample. The following is my adaptive card.
{ "type": "AdaptiveCard", "body": [ { "type": "TextBlock", "size": "Large", "weight": "Bolder", "text": "Please confirm all your projects below" }, { "type": "TextBlock", "wrap": true, "text": "All info below are based on the records you have handed into the online New Project Setup Form and Network Access Request Form. If nothing shows up, please click \"More to submit\" button to transfer all your ongoing projects to the desired users.", "spacing": "Small" }, { "type": "Container", "items": [ { "type": "ColumnSet", "columns": [ { "type": "Column", "width": "stretch", "items": [ { "type": "TextBlock", "text": "Project Folder Path", "wrap": true, "weight": "Bolder" } ] } ] } ], "bleed": true, "style": "emphasis" }, { "type": "Container", "items": [ { "type": "ColumnSet", "$data":"${AllAttendedProjects}", "columns": [ { "type": "Column", "width": "stretch", "items": [ { "type": "TextBlock", "wrap": true, "id": "projectPaths", "text": "${PPath}" } ], "id": "ProjectFolderPath" }, { "type": "Column", "width": "auto", "items": [ { "type": "Image", "url": "https://adaptivecards.io/content/down.png", "width": "20px", "id": "chevronDown${$index}" }, { "type": "Image", "spacing": "None", "isVisible": false, "url": "https://adaptivecards.io/content/up.png", "width": "20px", "id": "chevronUp${$index}" } ], "spacing": "None", "selectAction": { "type": "Action.ToggleVisibility", "title": "expand", "targetElements": [ "cardContent${$index}", "chevronDown${$index}", "chevronUp${$index}" ] } } ] }, { "type": "Container", "items": [ { "type": "TextBlock", "text": "Enter the email address who will continue on your this project", "wrap": true, "size": "Small", "weight": "Lighter" }, { "type": "Input.Text", "placeholder": "e.g. [email protected]", "id": "ProjectRecipient" } ], "isVisible": false, "id": "cardContent${$index}" } ] }, { "type": "ActionSet", "actions": [ { "type": "Action.OpenUrl", "title": "More to submit", "url": "https://macrostat365.sharepoint.com/sites/tgbm-all-IT/Lists/Work%20Transition%20Form/AllItems.aspx" }, { "type": "Action.Submit", "title": "Confirm" } ] } ], "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", "version": "1.2" }

Here are my sample data:
{ "AllAttendeProjects":[ { "PPath": "\\\\mst13\\Training" }, { "PPath": "\\\\mst13\\Timesheet" }] }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant