Hello EveryOne,
I want to retrieve emails in my mailbox and check if there are duplicates in relation to the subject of the email. If there are duplicates do not process them and go to the next email.
Can you help me find the best solution? Thanks in advance
Hi @Marc.J1 ,
You can try this query.
mailMessages = mailMessages.GroupBy(Function(x)x.Subject).Select(Function(x)x.First).ToList
where mailMessages is the output of Get outlook mail message.
Hope it helps.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.