Showing results for 
Search instead for 
Did you mean: 
Level: Power Up

Get hyperlink associated to a known text string

Somewhere in the body of a received e-mail in HTML format is a text string of the form 

Click here to approve request 123456

(where `123456` is an example that changes from e-mail to e-mail)


This text it has a `mailto:` hyperlink. Something like:

<a href=";body=blahblah">Click here to approve request 123456</a>

In Microsoft Flow, I need to get that hyperlink:;body=blahblah

How do I do this?


The ultimate goal is to have Flow send an e-mail as per the contents of the `mailto:` link.


I guess I could:

  1. Figure out the position (index) of `Click here to approve request`;
  2. Work back somehow to figure out the index of the `<a href="` and `">` immediately before that; and
  3. Parse what's in between those two markers.

This looks like it will be extremely painful in the Flow GUI. Is there no more convenient way?

Community Support Team
Community Support Team

Re: Get hyperlink associated to a known text string

Hi @jeaco ,


It could be achieved with the three steps you’ve mentioned in the post.

If you want a more convenient way, please consider using connector MailParser.

Here is the doc on mailParser (Preview) for your reference:

MailParse templates for your reference:


Best regards,



Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources


Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!


Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!


Microsoft Learn

Learn how to build the business apps that you need.


Power Platform World Tour

Find out where you can attend!


Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 348 members 4,857 guests
Please welcome our newest community members: