Copy link does not work in MS teams, it does not copy the correct link behind the hyperlink in adaptive card, instead it copies the link to the team's post.

Patil, Mamta - bhn 20 Reputation points
2024-10-15T12:03:20.3166667+00:00

Hello folks,

I am posting an adaptive card in a MS teams private channel using an azure logic app, which contains some hyperlinks which are dynamic.

The links works perfectly on click of it, but id I copy link using context menu, it copies the link to the post instead of the correct link.

This is the Json of a test adaptive card- {

    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",

    "type": "AdaptiveCard",

    "version": "1.6",

    "msteams": {

        "width": "Full"

    },

    "body": [

        {

            "type": "Container",

            "width": "500px",

            "items": [

                {

                    "type": "Container",

                    "width": "1200px",

                    "items": [

                        {

                            "type": "TextBlock",

                            "text": "Adaptive card example",

                            "weight": "Bolder",

                            "size": "Medium",

                            "wrap": true,

                            "spacing": "None"

                        }

                    ],

                    "verticalContentAlignment": "Top"

                },

                {

                    "type": "FactSet",

                    "width": "1200px",

                    "facts": [

                        {

                            "title": "User ID",

                            "value": "1234"

                        },

                        {

                            "title": "Username",

                            "value": "xyz"

                        }

                    ]

                },

                {

                    "type": "TextBlock",

                    "text": "Test Link",

                    "wrap": true

                },

                {

                    "type": "TextBlock",

                    "text": "Here is the link",

                    "wrap": true,

                    "isSubtle": true

                }

            ],

            "style": "emphasis",

            "horizontalAlignment": "Left"

        }

    ]

}

when I open the link in adaptive card, it correctly navigates to https://www.google.com/, but if I copy link, the link to the post gets copied i.e. "https://teams.microsoft.com/l/message/19:*** Email address is removed for privacy ***/1728979348438?tenantId=37cf0ce8-ac09-4e7d-9ff2-f1da44914b3e&groupId=ba460fb9-32e4-45d5-b1b4-07cdf58e7d7a&parentMessageId=1728979348438&teamName=Test%20Team%20-%20Sentinel%20Incident&channelName=Test%20Sentinel%20Incident%20-%20Private%20Channel&createdTime=1728979348438&ngc=true"

Please suggest if any solution to the issue.

Below is the screenshot of test adaptive card
Adaptive card example

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,559 questions
Microsoft Teams | Microsoft Teams for business | Other
0 comments No comments
{count} votes

Accepted answer
  1. Anonymous
    2024-10-16T02:42:38.2033333+00:00

    Hi @Patil, Mamta - bhn

    According to our testing, whether you use TextBlock or Action.OpenUrl to add a hyperlink in an adaptive card and send it to Teams, you can only access the link by clicking it.

    If you copy the link, Teams assumes that you are copying a link to the post. This is by design.

    User's image

    To get this feature more quickly, you can send a feedback directly to Microsoft Feedback to add it in future updates.

    Many features of our current products are designed and upgraded based on customers’ feedback. With requirements like this increase, the problem may well be released in the future.

    Thanks for your understanding and support.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.