On Click of hyperlink Teams chat opening

Sridhar, Arun (Cognizant) 0 Reputation points
2024-04-17T08:00:52.94+00:00

Hello Team

I am working on a requirement which on a click of hyperlink. I am using Microsoft Razor

  1. Microsoft Teams should open and a particular person chat should open, message should contain a message along with a div ready to be delivered(Waiting for send )

Issue im facing is

Along with that person , in many other people window are also having the message (Ready to be sent)

Div is not getting rendered.

Below is the code

<a type="button" class="border-0 card-link" target="_blank" href='https://teams.microsoft.com/l/chat/0/0?users=@poc.SMEContactEmail&message="Request more info on poc "- @poc.Name' <div>any thing</div>>Chat with SME</a>Hello Team

I am working on a requirement which on a click of hyperlink. I am using Microsoft Razor

Microsoft Teams should open and a particular person chat should open, message should contain a message along with a div ready to be delivered(Waiting for send )

Issue im facing is

Along with that person , in many other people window are also having the message (Ready to be sent)

Div is not getting rendered.

Below is the code

<a type="button" class="border-0 card-link" target="_blank" href='https://teams.microsoft.com/l/chat/0/0?users=@poc.SMEContactEmail&message="Request more info on poc "- @poc.Name' <div>any thing</div>>Chat with SME</a>

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,099 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,176 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. LiweiTian-MSFT 14,220 Reputation points Microsoft Vendor
    2024-04-18T05:21:07.0666667+00:00

    Teams tag is mainly focused on the general issue of Microsoft Teams troubleshooting. According to your description, your question is related to Teams Development which is not in our support scope. To better help you solve your problem, please add the Teams Development tag to your post.The following suggestion is just for your reference:

    According to our testing, when you use &message=<precanned text>, the text will be displayed to multiple users, which should be a default behavior of Teams.

    If you want to avoid this issue, we recommend that you only use https://teams.microsoft.com/l/chat/0/0?users=<user1> and enter the text manually in the chat box.

    To fix the problem 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

  2. Sridhar, Arun (Cognizant) 0 Reputation points
    2024-04-18T08:09:29.02+00:00

    Hello

    Is this a defect or bug which MS Teams need to sort out as it is randomly sending messages to message window and NOT to a specific user .

    0 comments No comments