Saved email with Save Mail Message has the "Received date" changed to "None"

How to save emails using Save Mail Message activity and still have the "Received date" in the saved email?

Issue: The Saved emails with Save Mail Message activity do not have the received date, unlike when saving email manually. When the email is saved manually, a valid Received date is present. 

  • Manually saved email in Outlook has the end date
  • Mail saved with Save Mail Message doesn't have the received date (None)


Resolution
To resolve the issue, the header("Date") format of the email needs to be modified before saving it and assign to the email item a new header date format by using the following method: 
 
mail.Headers("Date")= datetime.ParseExact(mail.Headers(“Date”),“dd/MM/yyyy HH:mm:ss”,System.Globalization.CultureInfo.InvariantCulture).ToString(“ddd d MMM yyyy HH:mm:ss”)

Image_2020-11-03_15-42-19.png