Clicking an link in a email body

Hello Fellow Devs, I’m having difficulties figuring out how to build a bot that can Firstly read a Outlook email body, then click a particular link in the body of the email mail Main point: (I’m having Difficulties with building a bot that will select the body and click the link only).

Does anyone have an idea on the code???

Correction* Save the link to a variable so I can open the link in an Open Web browser Activity…

Hi,

Perhaps you should use GetOutlookMailMessages activity and Matches activity as the following.

We can use regex pattern for extracting URL in Matches activity.

Regards,

1 Like

Do you Know what the Value variable is for by the Open browser link activity?

Hi,

“link” in For Each activity is Match type and has string which is matched in mail body by regex.
We need to use Value property to get it as string.

Regards,

Understood and to make things clear.
What type argument did you use for your Second FOR EACH loop in the properties section?

Hi,

What type argument did you use for your Second FOR EACH loop in the properties section?

We should use System.Text.RegularExpressions.Match type.

Regards,

Thank you it finally works. Very much appreciated :slightly_smiling_face: :slightly_smiling_face: :clap: :clap: :raised_hands:

2 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.