Getoutlookmail activity filter by multiple domains

Hi, I’m trying to apply multiple filters for different domains, my previous post got accidentally flagged as advertisement, which is why I had to start a new one.

For example, I have multiple domains:
image
and so on

I would like to get mails only from the specific domains.

Currently I’m using this filter:
image

But this only works with one domain.
How can I filter multiple domains?

Hi @Joanne_Chang_LAX

Try this it is working

ListMail=ListMail.Where(Function(mail) mail.From.Address.ToLower().EndsWith("@abc.com") Or mail.From.Address.ToLower().EndsWith("@xyz.com")).ToList()

I hope it helps!!

@Joanne_Chang_LAX

"[SenderEmailAddress] LIKE '%@bac.com' OR [SenderEmailAddress] LIKE '%@systemstf.com'"

Try this one in Get outlook mail message activity

@Joanne_Chang_LAX

Please try this

"@SQL=urn:schemas:mailheader:fromemail IN '%@abc.com' OR urn:schemas:mailheader:fromemail IN '%@def.com'

Cheers

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