Skip to main content

How to Add a Link to an Email in Power Automate

· 4 min read
Jagdish Kumawat
Founder @ Dewiride

An email from a flow often needs to point somewhere: a file, a report, a form. Send an email (V2) sends its Body as HTML, so a link is an HTML <a> tag, and the body editor's code view lets you type it exactly. The reader gets ordinary linked text.

The example emails me Read the Power Automate documentation., with Power Automate documentation linked to Microsoft's documentation.

Step 1: Add Send an email (V2)​

In a flow with the trigger Manually trigger a flow, add Send an email (V2) from Office 365 Outlook (How to Send an Email in Power Automate). Fill To and Subject, here A link from Power Automate.

Step 2: Open the Body's Code View​

In the Body editor's toolbar, select the code view button at the right, shown as </>:

The Send an email (V2) action with To admin@example.com, Subject A link from Power Automate, an empty Body, and the code view button at the right of the Body toolbar outlined in red

The body now shows HTML instead of formatted text.

Type the paragraph with the link in it:

Send an email (V2) → Body (code view)
<p>Read the <a href="https://learn.microsoft.com/power-automate/">Power Automate documentation</a>.</p>
  • <p>...</p> is a paragraph.
  • <a href="..."> starts the link. The address the link opens goes between the quotes.
  • Power Automate documentation is the text people see and select.
  • </a> ends the link, so the full stop after it isn't part of it.

The editor added a class to each tag by itself, class="editor-paragraph" and class="editor-link"; the link works the same:

The Body in code view showing p class="editor-paragraph" Read the a href="https://learn.microsoft.com/power-automate/" class="editor-link" Power Automate documentation, closing a, full stop, closing p

The Result​

Save the flow and test it (How to Test a Cloud Flow Manually in Power Automate). In Outlook, the email says Read the Power Automate documentation. with the link underlined:

The email A link from Power Automate in Outlook, from Admin User to Admin User, with the body Read the Power Automate documentation. and Power Automate documentation underlined as a link

Common Mistakes​

MistakeWhat happensDo this instead
Typing the HTML in the normal editorThe tags are typed as text, not turned into a linkType it in code view
A slip in the address between the quotesThe link opens the wrong page, or noneCopy the address from the browser's address bar

Troubleshooting​

SymptomLikely causeFix
The tags show up in the emailThey were typed outside code viewSwitch to code view and retype them
The link text is missingNothing between <a ...> and </a>Put the text there
The address comes from the flow but the link is emptyThe token holds nothing in that runCheck the token's value in the run

FAQ​

Yes. In code view, put a token or an expression inside the quotes, such as <a href="@{outputs('File_link')}">the file</a>. To get a file's link, see How to Get a Link to a SharePoint File in Power Automate.

The Body toolbar has a link button too. Code view shows exactly what the email will contain, which helps when the address comes from the flow.

Yes, one <a> tag for each, in the same or different paragraphs.

Conclusion​

Switch the Body of Send an email (V2) to code view and write the link as <a href="address">text</a> inside a paragraph. The email arrives with that text as a clickable link.

Additional Resources​