Let's POWER Automate

From no-code to low-code

Menu
  • Expressions
  • Filters
  • General
  • Application specific solutions
    • Dataverse
    • Excel
    • Forms
    • Planner
    • Outlook
    • SharePoint
    • Teams
  • Triggers
  • Resources
  • ABOUT ME
  • Get help with your flow
Menu

Use dynamic hyperlink in an email sent by Power Automate

Posted on November 20, 2022November 20, 2022 by Tom

“Each email recipient should get a different link to their request, how can I add this dynamic hyperlink to an email sent by Power Automate?”


When sending information emails, you probably don’t include all the information in each of them. You add the most important data to the email body followed by a link to the full item/request/folder. It’s easy to do if they’re fixed links, but what about dynamic links? How do you add a dynamic hyperlink? Use an output of a previous action as the link when the email editor won’t let you do that?

Power Automate email dynamic hyperlink

Add the link using HTML code

If the rich text editor won’t help, you’ll have to define the email in HTML code using the small button on the right side, the same approach as with Teams messages.

Yet defining the whole message in HTML might be a bit complicated for non IT people. That’s why you can do a small workaround.

Firstly, define the whole message using the rich text editor.

Secondly, use some dummy url address to highlight the places for the dynamic hyperlinks.

Thirdly, switch to the HTML code using the button on the right side and replace the dummy links with the dynamic contents.

Power Automate email dynamic hyperlink

And that’s it, you just added a dynamic hyperlink to the email message.

Revert the process to update the message

You might notice that once you use a dynamic content as a hyperlink, the switch between rich text and HTML will be disabled.

Power Automate email dynamic hyperlink

But it doesn’t mean that you can’t edit the message in the designer anymore. If you revert the process and replace the dynamic contents with another dummy address, you can switch it back.

Power Automate email dynamic hyperlink

Summary

Sending an email with dynamic hyperlink is not as easy as one might expect in Power Automate. You have the rich text editor to add links, but that one works only for fixed links. Once you have a dynamic hyperlink, using output of a previous action, you’ll have to switch to the HTML designer. Luckily you don’t have to design the whole message in HTML. You can prepare the message, use some url placeholders, and at the end switch to HTML and replace them with dynamic contents.


Do you struggle with the various expressions, conditions, filters, or HTTP requests available in Power Automate?

I send one email per week with a summary of the new solutions, designed to help even non IT people to automate some of their repetitive tasks.

All subscribers have also access to resources like a SharePoint Filter Query cheat sheet or Date expressions cheat sheet.

Zero spam, unsubscribe anytime.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Do you know what to do, but not how to do it?

Get The Ultimate Power Automate expressions cheat sheet and translate your thoughts into flows with ease!


There's also the HTTP requests to SharePoint cheat sheet to help you overcome limitations of some standard actions!

Do you struggle with the various expressions, conditions, filters, or HTTP requests available in Power Automate?

I send one email per week with a summary of the new solutions, designed to help even non IT people to automate some of their repetitive tasks.

All subscribers have also access to resources like a SharePoint Filter Query cheat sheet or Date expressions cheat sheet.

Zero spam, unsubscribe anytime.

  • How to find Excel rows missing in SharePoint list (Power Automate)March 29, 2023
  • Check whether user exists in AAD with Power AutomateMarch 26, 2023
  • How to highlight whole SharePoint row based on calculated dateMarch 22, 2023
  • Why is your Power Automate flow running so slow?March 19, 2023
  • How to add multiple links to the Power Automate approval taskMarch 15, 2023

Power Automate blogs worth visiting

Damien Bird
Dennis (Expiscornovus)
Paul Murana

©2023 Let's POWER Automate | Theme by SuperbThemes