I would like to ask that how do we apply filter by using source email id.
let me explain the scenario of my task-
I have automated a process in which bot reads the mail based on subject lines and then it compares the same mail to an excel sheet’s subject lines if both subject lines are same then it raises a ticket against the same mail.
I now want that after comparing with subject lines it also checks source Id and if mail’s source Id and excel id against subject lines are same then it should go for next process.
I have already filtered the email by subject lines and it is working and now want to check with it sender email address as well.
Just help me with sender email address, means how to compare with these two at the same time. as soon as bot get read the mail then it checks the mail with excel sheet data and if any subject matches then it should check sender email id (outlook mail sender and excel sender against the same subject).
so I am able to compare it by subject and now need your help on sender mail address comparison.
After reading the mails by using the Get outlook mail messages. Loop over it by using For each inside that put another for each row in data table which will iterate through our excel values data table. Put a if condition like below to check both the subject & Email address comparison.
CurrentRow(“Subject”).ToString = “Test” AND CurrentRow(“Email”).ToString = currentItem.SenderEmailAddress.ToString
Thank you for your reply. let me mention the conditions which I have put for reading outlook subject lines and comparing it with excel sheet subject lines.
firstly, I have used this -
after that used this for comparing-
So here what is happening, bot is able to get the mail and then it compares the mail’s subject with excel subject and if it gets matched then it logs a ticket for this.
So my concern is whenever it gets an email then it should also check the excel sheet sender email address along subject and if both (mail’s subject sender address and excel sender address) are same then it needs to log the ticket.
I want to add-on in above mentioned logic for sender email address as I have different sender addresses against mails.
Could you please check it and help me out on this.
Put similar condition for checking the email address & join with AND function in If statement. If both conditions are correct it will go ahead or it will go in else.