Hi,
I have a program that takes user input from the ‘Input Dialog’ box. The user input is a date in mm/dd/yyyy format. It’s stored in userDate variable.
Then I use Outlook activity to search for an email of that date. In ‘Additional Filters’, I select Date option and provide the input date as a parameter for the Input Dialog.
Now, when I open in advanced editor, the data looks like this Saved.Values(Of UiPath.Excel.ExcelValue)(“userDate”).
Question:
When I input 12/30/2021 (in format mm/dd/yyyy), it works fine. I get the email and related attachment.
However, most surprising, when I enter 1/2/2022, it does not download the attachment, even though there’s an email.
Can you please tell me why this is happening ? Any possible solution ?
I have created similar work flow in studiox. i have given the date format like 1/3/2022 you mentioned it was working in my side. i think we have to check any other filters you have used like un read email, with attachments only etc. We could test like whether we are getting the subject of email and see if you are getting any emails on that date. thanks.
You have the date entered by the user as a string. You can’t compare dates as strings. You have to convert it to an actual datetime before using it to find the email.