Unable to extract DATE information from mails received through Outlook

Hello,

I am creating a workflow where I need to extract the date and time of each mail received in Inbox folder. I am using a for each loop and traversing through each mail and extracting the sender and receiver’s name and the entire content of the mail but I am unable to extract the date and time. I ma attaching the workflow in which I am retrieving the subject of the mail. Can a similar thing can be applied for date and time? Or are there any other option available?
Thanks in advance!

Regards,
Tamshi

HI @tamshi

You can get the Date from the header of the message like this:

message.Headers("Date")

Regards

3 Likes

Hi @tamshi,

Take a look at this

https://forum.uipath.com/t/email-getoutlookmailmessage-how-to-retrieve-received-date-modified-date-and-message-id-from-each-email/1805?u=susana

Hi @tamshi,

In order to get the date and time that this e-mail was created, please try the following example:

I also did an example that shows all the fields that are able to get some information from the header. Please check the attached example.
Main.xaml (11.2 KB)

2 Likes

Thank you so much @Thiago
I tried message.Headers(“Date”). It worked. :relaxed:

1 Like

Thank you so much @acaciomelo.
I tried this. It works the way I wanted.

1 Like

Thanks @Susana. It works. :relaxed:

1 Like