Outlook GetMessages omitting delivery reports

While it could be confirmed 100% by looking at the source code, the most probable culprit is the way the items are fetched - regular mail is a MailItem class, while delivery receipts and other reports (undeliverable etc.) are ReportItem class.
I wouldn’t be surprised if there’s a check for a class or the fetch itself is filtered for that class objects. Since it needs to return a List<MailMessage>, it probably only goes for MailItem objects, since reports have a different structure (they’re similar, but not same).

If this is confirmed by someone from UiPath, your only solution would be to I suppose roll your own integration or request an addition to the package. It would be useful to be able to get delivery receipts, so I don’t think it will be declined, but it might take some time. Either way, it’s in UiPath hands.

3 Likes