Hi Team,
I’m using the retrieve outlook mail messages activity(UiPath.mail.activities)
Even though i have emails in the outlook inbox, the activity sometimes returns empty list and doesn’t read any messages.
Details:
UiPath studio version: 2024.10.15 LTS
UiPath.Mail.activities version: 2.0.11
Outlook type: Desktop app
Folder : Inbox
Unread mails: false
Mail filter: only read current day mails
Sometimes its giving correct list and sometimes its missing and i have confirmed there are mails, but still the activity returns no results
Try to remove any filters and observe the latest (newest) email in the retrieved list.
It may be that your time filter is the issue.
Hi, @PAVAN_KALYAN1
After removing filters apply date filter like this to get only today’s emails:
"[ReceivedTime]>= '" + Now.ToString("MM/dd/yyyy 00:00") + "' AND [ReceivedTime]< '" + Now.AddDays(1).ToString("MM/dd/yyyy 00:00") + "'"
We did this earlier only but still its showing empty list sometimes
@PAVAN_KALYAN1,
If this happening in unattended run, add Outlook in start up app to open it as soon as user logs in into the machine.
Also before reading the mail messages, try adding delay of 10-25 second to allow Outlook to download latest emails from the server.
You can also explore Integration services approach which is more fat and reliable than the Outlook.