How to format email links to SharePoint list items in Power Automate

The post explains how to neatly format email links to SharePoint list items in Power Automate using dynamic content and HTML.

In this post we take a look at two different ways you can neatly format email links to SharePoint list items within an email sent from Power Automate

Introduction

In Power Automate, you can use the send an email action to send emails that also includes dynamic content from different sources. A frequent need is to include a link to a SharePoint list item within an email sent from a flow.

In Power Automate, there is dynamic content called link to item that provides a link to a specific list item, but out of the box it doesn’t look great when inserted into the body of an email:

Here is an example of how to provide a formatted link to a list item:

Using dynamic content and HTML

This option leverages the link to item dynamic content, but adds a tiny bit of HTML to format it nicely:

  • Open the send the send an email action you wish to add the formatted link in
  • In the body of your email, press the lightening bolt icon to open the dynamic content pane > select link to item
  • Press the toggle code view button < > in the body field
  • Insert the following HTML code, replacing LINKTOITEM DYNAMIC CONTENT with the actual dynamic content
  • The end result should look like this:

With the corresponding email looking like this:


Leave a Reply

Recent posts

Discover more from SharePoint Stuff

Subscribe now to keep reading and get access to the full archive.

Continue reading