Forum Discussion
mattphillips
Jul 15, 2022Copper Contributor
Teams Adaptive Card Not Opening Custom URI within Channel
I've created a message with a button to call a custom URI which will open a local program, this functionality works in a personal chat directly with the bot. However it does not work within a Teams C...
Prasad_Das-MSFT
Microsoft
Jul 18, 2022mattphillips - 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"
}
]
}
mattphillips
Jul 21, 2022Copper Contributor
Yes 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?
- Doug RoutledgeFeb 21, 2023Copper Contributor
Just change your code that works.
Replace your https url with;
tel:+18008888888 and you will see the issue.