What is the xml structure to use to notify a user in microsoft teams?

Scott Snyder 0 Reputation points
2024-04-15T15:31:45.4+00:00

I am using an automation via Zapier to post to a channel in Microsoft Teams.. I want to call out a specific user in the post that is being formatted in Zapier via XML. In teams it is typically initiated by selecting @ + user name.. However when I post via xml the users name it is plain text with no hyperlink to the user and therefore not notifying the specific user.

What is the xml structure for linking to a user?

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,122 questions
{count} votes

1 answer

Sort by: Most helpful
  1. JimmyYang-MSFT 49,031 Reputation points Microsoft Vendor
    2024-04-16T06:07:04.5933333+00:00

    Hi @Scott Snyder

    Thanks for your feedback above which shared more information and glad to know that your issue is resolved now! Since our forum has the policy that The question author cannot accept their own answer. They can only accept answers by others, and according to the scenario introduced here: Answering your own questions on Microsoft Q&A

    I would make a brief summary of this post so that other forum members could easily find useful information here:

    [What is the xml structure to use to notify a user in microsoft teams?- Summary]

    Issue Symptom: I want to call out a specific user in the post that is being formatted in Zapier via XML. In teams it is typically initiated by selecting @ + user name.. However when I post via xml the users name it is plain text with no hyperlink to the user and therefore not notifying the specific user.

    What is the xml structure for linking to a user?

    Solution: To mention team members, put their display name, email, or userID between “at” tags. For example, you could use <at>Jane Doe</at>, <at>jane.doe@example.com</at>, or <at>jane-doe-user-id</at> to mention a team member "Jane Doe".

    You could "Accept Answer" for this summary to close this thread, and your action would be helpful to other users who encounter the same issue and read this thread. Thanks for your understanding!


    If an Answer is helpful, please click "Accept Answer" and upvote it.

    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.