I’m attempting to grab e-mails using the Get Outlook Mail Messages activity. The e-mails are output to a MailMessage List and then a for each loop allows me to extract the Email.Subject and Email.Headers(“Date”) absolutely fine. however I cannot seem to get the sender or the body of the E-mail.
Email.Body, Email.Sender.Address, E-mail.From.Address all return the following Error
Main has thrown an exception
Message: Object reference not set to an instance of an object. This error usually occurs when using a variable with no set value (not initialized).
Source: Log message
Exception Type: NullReferenceException
System.NullReferenceException: Object reference not set to an instance of an object.
It’s almost as if it’s not actually reading in any information for these, however Subject and Headers works so I’m really confused… any suggestions?