cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jeaco
New Member

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?

2 REPLIES 2
v-yamao-msft
Community Support
Community Support

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.

What are the credentials I should input for this MailParser connector?

I'm just not entirely sure what existing info I am supposed to use for Username/Password or whether I am creating that per instance of this connector.

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Top Solution Authors
Users online (1,506)