cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
jeaco
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="mailto:info@example.com?subject=some_subject&amp;body=blahblah">Click here to approve request 123456</a>

In Microsoft Flow, I need to get that hyperlink:  

mailto:info@example.com?subject=some_subject&amp;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?

1 REPLY 1
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:

https://docs.microsoft.com/en-us/connectors/mailparser/

MailParse templates for your reference:

https://asia.flow.microsoft.com/en-us/connectors/shared_mailparser/mailparser/

 

Best regards,

Mabel

 

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

Announcements
firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors
Users online (5,899)