How to open a different hyperlink in each separate email

Hi all,

I’m fairly new to this and working on my first project and find myself stuck early on so any help would be much appreciated!

I am trying to have my bot identify and open a hyperlink in the body of an outlook email. I have it working in the sense that it identifies the correct email subject line, opens the email and clicks the hyperlink however when there are multiple emails it only opens the most recent link. See below for what I have so far

Any help would be much appreciated!



Instead of Click, Can you use Get Text activity and check in UiExplorer
Check for the tag which has the url

Then you can get directly the url and that variable can be used further

Hope this will help you


1 Like

Hi Kyle,

I would suggest something totally different here.

  1. First get the text from the body of the email.

  2. By using string manipulation extract the hyper link you are looking for from the text body.

  3. Assign the hyperlink to a varaible.

  4. Use that variable to start a browser activity with the hyper link as the URL.

Hope this helps :slight_smile:


As you are using Get Outlook Mail Activities

Then, you can use the For Each activity and Type Argument to System.Mail.MailMessage

Now write as below Item.Body

This will extract the Body without no need of opening the outlook mail in GUI mode

There you can use Regex to extract the URL

Share the screenshot of the output, So that we can help