How to Create Hyperlink Dynamic Content in Power Automate?

In this Power Automate tutorial, I will show you how to create hyperlink with dynamic content URLs while sending an email in Power Automate.

Here I have shown you the steps to create a hyperlink and send an email with the URL from the dynamic content using Flow. It perfectly works for me, and I received the email with the expected output.

If you follow the below steps, I am sure that you will also be able to create hyperlink dynamic content in Power Automate

Scenario:

The flow triggers manually and requests the user to enter a value in a textbox. Based on the text input value it generates the URL and sends an email with the generated URL from the dynamic content.

Create hyperlink dynamic content in Power Automate

Let us see how to create hyperlink dynamic content in Power Automate flow

Step-1:

  • Log in to Power Automate flow using the credentials, and select +Create -> Instant cloud flow.
  • Enter the flow name, choose the trigger as manually trigger a flow, and click the create option.
power automate hyperlink dynamic content

Step-2:

Expand the trigger action, and add a Text input as shown below:

hyperlink dynamic content in power automate flow

Step-3:

  • Add +new step and select initialize Variable action. Enter the variable name and choose the variable type as String.
  • In the values section pass the below formula to convert the string value to lowercase.
toLower(replace(triggerBody()['text'],' ',''))
Use dynamic hyperlink in an email sent by Power Automate

Step-4:

To generate hyperlink value, add a compose data operation and pass the below code value:

https://www.@{variables('getLinkText')}.com/
C:\Users\TSinfo\Desktop\How to create hyperlink with dynamic URL in Power Automate.jpg

Step-5:

  • Select Send an Email V2 outlook action from action triggers; Enter the recipient’s email in the To field.
  • Provide the subject of the mail. And in the body section switch to the HTML code using the button on the right side.
  • And pass the dynamic content value as the output of the compose data operation which stores the generated URL value to the email using <a href> tag.
Add Dynamic Hyperlinks in Emails in Power Automate

Step-6:

Save and run the flow, and enter LinkText to generate a URL based on the text value. Click on the Run flow option.

Add Dynamic Hyperlinks in Emails in Power Automate flow

Once the flow runs successfully, like below:

How to add dynamic hyperlinks in emails in Power Automate

We can see the email with the generated hyperlink, When we select the link, it redirects to the mentioned URL.

How to add dynamic hyperlinks in emails in Power Automate flow

This is how to create hyperlink dynamic content in the Power Automate flow.

Conclusion

I have shown you how to easily generate a hyperlink and send an email using Power Automate from the dynamic content value.

You may also like:

>