How to remove duplicate email from email collection

Hi UiPath,

Let say I use the getoutlook mail message activity to extract all unread emails and I want to remove duplicate email subject line.

how can I do that?

Thanks!

Hello @alvin.c.apostol26

Give a try with below expression.

demoEmail.Distinct().ToList()

demoEmail is the ilist variable.

Thanks

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.