How to make a URL from Logic App Clickable

Kenny Badejo 25 Reputation points
2023-11-03T14:50:41.2033333+00:00

Hello.

I have a Logic App Playbook that automatically sends me email notifications for new Azure Sentinel Incidents.

However when these mails come in, I notice the URL link to the incident is not clickable. I have to manually copy and paste it into a browser.

Any way i can click the link directly from the email.

I have same issues with a Logic App Playbook that sends me a Teams notification when a Sentinel Incident is created. The notification comes in, but the link is not Clickable.

Any workaround for this?

Thanks

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

Accepted answer
  1. Boris Von Dahle 3,221 Reputation points
    2023-11-03T20:14:38.6633333+00:00

    Hello,

    To make the URL links clickable in the email or Teams notifications sent by Azure Logic Apps, you need to format the URLs as HTML hyperlinks in the body of the message. This is because the text in the email or Teams message is treated as HTML.

    Here is how you can do it:

    In the Logic App action where you are setting up the email notification ), you can format the URLs using HTML <a> tags. If the URL is stored in a variable incidentLink, you can create a clickable link in the email body using the following format:

       <a href="@{variables('incidentLink')}">Click here to view the incident</a>
    

    For Teams you can use the same approach.

    Hope this helps.

    If you found this answer helpful, please accept it so that other users can find this topic.

    Regards


1 additional answer

Sort by: Most helpful
  1. Anonymous
    2023-11-06T02:10:08.94+00:00

    Hi @kenny badejo

    Totally agree with Boris Von Dahle's suggestion. According to our research, hyperlinks in Flow Message are rendered as plain text if the message contains HTML styles.

    Please try Boris Von Dahle's method, you can also try this method to see if it solves your problem.

    User's image


    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.



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.