Hi, I would like my robot to find text in an email, in outlook. I need to find two values in a message.
How can I do this?
You can get the mails usign get mail activity then mail.body will give the body…then can use mail.body.contains("abc")
cheers
-
Get Outlook Mail Messages
- Output: mailMessages (List)
-
For Each mail In mailMessages
- Body: For Each mailMessage In mailMessages
ForEach TypeArgument = System.Net.Mail.MailMessage
(Add activities inside this For Each)
- Body: For Each mailMessage In mailMessages
-
Assign activities inside For Each to extract values
- Assign: emailBody = mail.Body
use log message activity (emailBody)
- Assign: emailBody = mail.Body