Is there a way to render a hyperlink in a new chat window via a deeplink url

Pandey, Ashish Kumar 41 Reputation points
2022-07-25T04:09:33.37+00:00

Hi,
I am building an app and I need to share some details via the MS Teams deep link url,

Currently I am passing a URL in the format, [ClickHere](https://www.clickhere.com] from the following deep link URL as shown below,

224165-image.png

I have a question:

  1. How can I prefill a new chat, created via the below deep link URL, with a hyperlink text, passed in the format as above.

The above deep link url, renders the message as shown in the image below,
224178-image.png
but according to my requirement, it should be rendered as below,

224232-image.png

Concerns:

  1. I am able to create a new chat with the above deep link url, but the message window is not getting pre-filled with the msgText text which I am passing. Is it possible to populate the chat message with the msgText text for a new chat created via the above url.
  2. Currently, I am only able to pre-populate the chat message from the above deep link url, if I give a valid list of users (users which are in the Azure Active Directory) and the message is not getting rendered as a hyperlink, rather it is getting rendered as Hello and when I explicitly, press a backspace followed by ')', then the text gets converted to hyperlink. Is there any way to render a hyperlink from the msgText attribute of deep link URL, where msgText contains a url which can be of size >200 chars.

Is it possible.

Currently for a new user, the chat window is empty even though I pass a valid message text.

Azure AI Bot Service
Azure AI Bot Service
An Azure service that provides an integrated environment for bot development.
942 questions
Microsoft Teams | Development
0 comments No comments
{count} votes

Accepted answer
  1. Prasad-MSFT 9,061 Reputation points Microsoft External Staff Moderator
    2022-07-26T10:57:55.667+00:00

    We followed below steps and checked that the valid message is getting passed successfully.

    1. Created a deep-link to open a new chat with valid message
      224865-image.png
    2. Made that deep-link as hyperlink
      224806-image.png
    3. Successfully opened a new chat along with prefilled message
      224835-image.png

    If you are trying other way around i. e.

    1. Deep-link to create a new chat in which the prefilled message will be of hyperlink format
      224836-image.png
    2. Then it is rendering as below
      224789-image.png
      and on manually removing ")" and adding again its getting converted to hyperlink
      224837-image.png
      and there doesn't seem to any way to directly render hyperlink prefilled text

    Thanks,

    Prasad Das


    If the response is helpful, please click "Accept Answer" and upvote it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Pandey, Ashish Kumar 41 Reputation points
    2022-07-27T04:05:07.9+00:00

    Hi Prasad,

    Thanks for the detailed response.

    However, my original request was:

    I have to send, **Hello in the msgText attribute of the deep link URL, so that anyone whoever opens the deeplink url, the chat message window should be populated as,
    Hello
    and not,
    Hello

    Kindly, revert if you have any questions.


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.