I am working on a new little project. The gist of it is to extract emails that contain a specifc subject. If it contains that subject then you will grab certain contents from the email: item name, item number. with these I will upload to a site, so I think I may need to save it to a file and point to it when uploading. I am not sure how to approach this one. I started with get outlook mail message. Is this going to be something complex to accomplish? Let me know if you need anymore background.
Get outlook mail message —give output as resultEmail
2.Drag and drop foreach activity – goto properrty and change it to system.net.mailmessage
3.pass the resultEmail in foreach
Drag if activity and provide condition as - item.subject.contains(“word”).ToString
if further if u have to check any attachemt then add one more if condtion as item.Attachment.Any
I had up to my if statement completed. Now how must I get the information from the email? From this information, I want to eventually upload it on a specific website if that makes sense?
I dont want it to produce message boxes. I want to read the emails that contain subject “load faileed”. In the body of these emails there is a table with item name and item number. This item name and number need to be extracted from the email and saved so that I can type this name and number into a site. Does that make more sense?
@amb13
I got your point. Thank you for detailed information.
I have already shared .xmal this will help you to filter mail with subject line.
For body part you need to do some operation. Since I don’t know how information are written in your body.
Your desired information might be in table , it might be written beside key word ( like item name : Laptop item number : 1234NJK )
Both these will have different extraction mechanism.
I can suggest you what you can do to get your desired result.
Item.Body.ToString – this will give you body , after that use regex expression to get your data.
@md.ahtesham
This is what is displayed in the email. I believe it is a table,so the first row is the keyword and then the second row are what describes the keyword(what i have to upload into another site everytime i receive this email). Do you have an extraction method for this?