Action.OpenUrl is not clickable for some URLs in Microsoft Teams bot

Copper Contributor
Hello,

I've developed bot using Microsoft bot framework, the bot response is adaptive card and i want to use the action.openurl button to open specific link and it worked with some urls but when i used url to document located in Microsoft online word the button become not clickable and this is the json object :

{
  "type": "AdaptiveCard",
  "body": [
    {
      "type": "TextBlock",
      "size": "Medium",
      "weight": "Bolder",
      "text": "test",
      "wrap": true
    }
  ],
  "actions": [
    {
      "type": "Action.OpenUrl",
      "title": "View",
      "url": "https://cisasuedu-my.sharepoint.com/personal/shereen_fathy_cis_asu_edu_eg/_layouts/15/doc.aspx?sourcedoc={3adf4a1f-32ee-434e-bf1e-9df321a9e504}&action=edit"
    }
  ],
  "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
  "version": "1.2"
}

 

1 Reply