First filter the emails with attachments only [ specifically with pdf] using below linq query
mails_list.AsEnumerable().Where(Function(mail) mail.Attachments.Where(Function(file) file.Name.Contains(“pdf”)).Count>0).ToArray where mail_list is the list of mails obtained from get outlook mails or other
Now use for each loop to loop through each mail
Inside it make the sequnce in such a way as to read the attachment using pdf activities and validate it by whether excel data is present in it or not.
I do not want to use Looping Since most of the emails in that mail box will contain pdf attachment, and reading and looping 5000+ emails would be more time taken, is there any other way to handle this?
But i think there would be a need of looping since u had to check whether the pdf data contains this value or not so definelty we need to loop through each of it