I have a process where I am trying to get every email with a specific subject in the last 24 hours. I would prefer to have the subject as a variable but I am failing continuously. I got it to work on Get Outlook Mail activity by using the expression:
“[Subject] = '” + ABCSubject + “’ And [receivedtime] >= '” +
DateTime.Now.AddDays(-1).ToShortDateString + “'”
Unfortunately the account I need is on Microsoft 365 and although it uses Outlook, for some reason this activity does not work saying “the specified folder cannot be found.” Anyways, I resorted to the IMAP activity and cannot get this filter to work for the life of me. This is the first statement that says get all message sin the last 24 hours:
"SINCE " + DateTime.Now.AddDays(-1).ToString(“dd-MMM-yyyy”)
I appreciate any help but please do not link me to the IMAP documentation page I’m having nightmares about it at this point.
For anyone smarter than I am ^^^