Get Outlook Mail Message

Scenario:

Hi, While trying to get outlook mail messages, We are unable to get mails which has display names inside single quotation. For example, it is searching for abc@gmail.com whereas it can’t able to find ‘abc@gmail.com’ which is inside the same folder

Steps to reproduce:

Current Behavior:

Error: Index was out of range

Expected Behavior:

Studio/Robot/Orchestrator Version:UiPath Studio Community Version 2017.1.6325

Last stable behavior:
Last stable version:
OS Version:
Others if Relevant: (workflow, logs, .net version, service pack, etc):<img

Inside foreach
item.From.Address.Contains(“abc@gmail.com”).ToString

Hi…I am using filter option for “To” address inside get outlook mail activity. There I can’t able to give contains or like.

"Filter " never worked for me. so i used the conventional way of sorting it.
Try with looping it will work.:+1:

Oh. But I will have some 15k or 20k mails in a folder. So while looping it may take very long time for every loop. Anyway thanks a lot for your update.

Did you update your mail package yet?

1 Like

Hi… Thanks for your suggestion. But still am facing difficulty on how to use contains inside filter. My exact scenario what I was using is “[To] = ‘abc@gmail.com’” and the address in my mailbox is ‘abc@gmail.com’ and not like abc@gmail.com.

1 Like

Did you try Display name instead of Email? [To] = abc?

What exactly are you trying to enter into the filter property?

Yes. I tried with both display name and email but both of them are not working. I am trying to filter out using ‘To’ addresses inside a particular folder. The email ids with single quotes are not retrieving whereas I can able to filer email ids without that single quotes.

Hi Vivek,
I’m facing a similar issue where I’m trying to apply filter on [From]. Did you get a break through ?
Please share your findings.

Any update to this? Any documentation regarding the filter feature for Get Outlook Mail Message? Getting failures when trying different ways to filter. My use case is filtering based on a domain so “[FROM] = ‘@company.com’” didn’t work nor did other variations.

1 Like