Andrzej.Kniola October 04, 2016 18:31
If it’s built on _items.find, then what is the correct syntax for DASL queries in that property? I can’t figure that out.
Since in C# I can do like this (first example from SO that caught my eye):
And get a result like this:
But when I try anything valid in DASL from UiPathStudio, it throws either a Condition is not valid or Cannot parse errors.
So there must be something specific to your implementation that does not allow valid DASL queries to work correctly.
I mean sure, usual case is to limit to unread and that limits the results greatly for the iteration (if any needed at all, just take them as they come), but still, if the functionality is there, it should work
PS> If it’s based on Interop.Outlook, why the return type is System.Net.Mail.MailMessage instead of Interop.Outlook.MailItem (which BTW has much more info, f.e. Importance and BodyFormat)?
PPS. If someone is wondering why the dates are so old - it’s because I didn’t sort the collection in any way before Find, nor apply any date filters. Either way it’s besides the question.