Forum Discussion
Teams Adaptive Card Not Opening Custom URI within Channel
mattphillips - Could you please share the card JSON , so that we can try out once from our end?
{
"type": "AdaptiveCard",
"body": [
{
"type": "TextBlock",
"size": "Medium",
"weight": "Bolder",
"text": "${$root.Subject}",
"wrap": true,
"style": "heading"
},
{
"type": "ColumnSet",
"columns": [
{
"type": "Column",
"items": [
{
"type": "TextBlock",
"weight": "Bolder",
"text": "${$root.From}",
"wrap": true
},
{
"type": "TextBlock",
"spacing": "None",
"text": "${$root.OpenDate}",
"isSubtle": true,
"wrap": true
}
],
"width": "stretch"
}
]
},
{
"type": "FactSet",
"facts": [
{
"title": "Status:",
"value": "${$root.StatusName}"
},
{
"title": "Assigned to:",
"value": "${$root.AssignedUserName}"
},
{
"title": "Priority:",
"value": "${$root.Priority}"
}
]
}
],
"actions": [
{
"type": "Action.ShowCard",
"title": "Edit",
"card": {
"type": "AdaptiveCard",
"body": [
{
"id": "Status",
"type": "Input.ChoiceSet",
"choices": [
{
"title": "Created",
"value": "1"
},
{
"title": "Acknowledged",
"value": "2"
},
{
"title": "Working On",
"value": "4"
},
{
"title": "Delayed",
"value": "8"
},
{
"title": "PassedOn",
"value": "16"
},
{
"title": "Completed",
"value": "32"
}
],
"value": "${$root.Status}"
},
{
"id": "AssignedUserID",
"type": "Input.ChoiceSet",
"choices": [
{
"title": "asdfasdf",
"value": "81"
},
{
"title": "sdfasdf",
"value": "18"
},
{
"title": "a",sdfasdf
"value": "57"
},
{
"title": "assdf",
"value": "78"
}
],
"value": "${$root.AssignedUserID}"
}
],
"actions": [
{
"type": "Action.Execute",
"title": "Save",
"verb": "save",
"data": {
"AssignedUserName": "${$root.AssignedUserName}",
"CC": "${$root.CC}",
"CloseDate": "${$root.CloseDate}",
"Description": "${$root.Description}",
"From": "${$root.From}",
"ID": "${$root.ID}",
"LastUpdated": "${$root.LastUpdated}",
"Notified": "${$root.Notified}",
"OpenDate": "${$root.OpenDate}",
"Priority": "${$root.Priority}",
"Reference": "${$root.Reference}",
"StatusName": "${$root.StatusName}",
"Subject": "${$root.Subject}",
"TimeTaken": "${$root.TimeTaken}"
},
"fallback": "Action.Submit"
}
],
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json"
}
},
{
"type": "Action.OpenUrl",
"title": "Adaptive Card Docs",
"url": "https://docs.microsoft.com/en-us/adaptive-cards/"
},
{
"type": "Action.OpenUrl",
"title": "Open in Outlook",
"url": "boof://${$root.Reference}"
}
],
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.4"
}
- Prasad_Das-MSFTJul 18, 2022
Microsoft
mattphillips - We tried with below JSON to open outlook messages by sending the card having Action.OpenUrl in Channel scope and it worked fine.
{ "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", "type": "AdaptiveCard", "version": "1.0", "body": [ { "type": "TextBlock", "text": "Open a URL" } ], "actions": [ { "type": "Action.OpenUrl", "title": "Navigate", "url": "https://outlook.office.com/mail/inbox/id/AAQkADNkM2FlOWNkLTA3ZDAtNDRmMC05YTZjLTY4NWI0MThiMTViNwAQADMUp%2B7ijypNrNjDSNyHuQ4%3D" } ] }- mattphillipsJul 21, 2022Copper ContributorYes Action.OpenUrl work with a URL. It doesn't however work with a custom URI within a channel as mentioned in the OP
- Prasad_Das-MSFTJul 21, 2022
Microsoft
mattphillips - Could you please share the sample code you are referring along with the manifest and repro steps/video, so that we can try out once from our end?