My automation basically logs a DateTime variable when it last uses Get Outlook Mail Messages, so that the next time it is run it extracts all messages after the logged date…
I can’t get the filter right, though. I know I need something like:
“[ReceivedTime >='” + in_StrLoggedDate + “'”
Have tried with a DateTime variable instead of Str, but no success!
@Palaniyappan this is running but does not seem to pick up emails past the logged date (eg. earlier today in_StrLoggedDate = “05/17/2019 10:30:00” - not picking up the three that were sent after then)
@Vijay_Kumar_C this compiles but seems to throw an error when accessing Outlook
Buddy your condition looks good
but check with the properties in the get outlook mail activity buddy
like onlyunread message willbe checked by default and if the mail were read already it wont pick buddy
so make it unread and you can do that for each mail with its option as Mark as unread
buddy @domluke90
Cheers @domluke90
Yeh, the “CustomerSure” folder is the only one I’m using. It works fine without the Filter Expression, so I’m pretty sure it is not recognising the Received DateTime to be ‘greater than’ the logged DateTime (as it works the other way)
Buddy your condition withfilter property is right
but you didn’t mention the no of mails to be read …thats why we didn’t get any mail as output,
if not sure put the default value of 30 in TOP property @domluke90
I’ve worked on your issue and hereby attaching a sample that could somehow helps you, instead of filtering in get outlook message activity property i’ve done it inside the loop, somehow i feel it is easier and it is working fine for me.