Get outlook email find ones with word "incident" in it then return an array

email

#1

I want people to send my bot a email with the subject name "Incident: 34234 2342342 424"
The bot will find emails that have the subject incident in it then put each incident into an array.
For each through the array
Get information from the web
Put into excel sheet
Email the person back with the results

I got everything but “The bot will find emails that have the subject incident in it then put each incident into an array” and Email the person back with the results

I saw someone was able to use .Subject on an email object, but I do not have that option when i try.


#2

Hi,
You need to change the TypeArgument from object to "system.net.mail.mailmessages"
to access all the methods of mail like(sender,from,body,attachment)


#3

Thank you I figured that out after making the topic. Now I am getting an error when I try to assign email.subject to a variable. It says the variable is undefined when I try to show it in a messagebox.


#4

Can you attache snapshot of your assignment variable


#5


#6

I think .from worked


#7

good for you.
cheers.:raised_back_of_hand:


#8

Thank you for your help. Do you know how to make it listen for emails, and when it gets one it runs? Like an event listener?


#9

https://www.uipath.com/activities-guide/monitor-events


#10

Youre the best. Thank you! Have a nice day!!