how can I tag a user in the email body using Azure Logic Apps? For example, instead of using 'Team', I want to use '@' to mention a user

Dhanlaxmi Jayapal (Tata Consultancy Services Limi) 40 Reputation points Microsoft Vendor
2024-08-16T10:42:17.1666667+00:00

How can I tag a user in the email body using Azure Logic Apps? For example, instead of using Team, I want to use '@' to mention a user like @Dhanlaxmi Jayapal (Tata Consultancy Services Limi) .Can someone please guide on this?

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,094 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sina Salam 10,176 Reputation points
    2024-08-16T16:48:35.5966667+00:00

    Hello Dhanlaxmi Jayapal (Tata Consultancy Services Limi) ,

    Welcome to the Microsoft Q&A and thank you for posting your questions here.

    I understand that you would like to tag a user in the email body using Azure Logic Apps instead of using Team, by using the "@" symbol to mention users.

    There are couples of a few steps to take:

    1. You can use a Variable or a Compose action to build your HTML and create the well-formatted HTML content template that includes the user mentions, like this:
       <p>Hello <span style="color: #0078D4;">@Jayapal</span>, please review the document.</p>
      
    2. In the same Compose action, use the Expression tab to replace the {User} placeholder with the actual user's name. For example:
       "<p>Hello, <b>@{triggerOutputs()?['headers']['x-ms-file-name']}</b>!</p>"
      
      Replace triggerOutputs()?['headers']['x-ms-file-name'] with the appropriate expression or variable containing the user's name.
    3. The you will use Send Mail V2

    For more detail steps, kindly use the links:

    Accept Answer

    I hope this is helpful! Do not hesitate to let me know if you have any other questions.

    ** Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful ** so that others in the community facing similar issues can easily find the solution.

    Best Regards,

    Sina Salam

    0 comments No comments

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.