5.1: Email Trigger Selection Script - Is it true that the EmailProcessing.MessageLocation variable is not available?

Jim G. (20 posts)
September 2, 2025 11:51 AM
Accepted Answer

adTempus 5.1

  • I created a C# Email Trigger Selection Script script, and I'd like to query the incoming XLS file.
  • But before I get there, is it true that the EmailProcessing.MessageLocation variable is not available?
  • It looks like it's null, and it looks like the file attachment and therefore the EmailProcessing.MessageLocation variable might not be available until the email is selected.
Bill Staff (618 posts)
September 2, 2025 12:04 PM
Accepted Answer

That is correct: the variables don't get set until a message is selected and the job is triggered.

Your selection script has a Parameters property (inherited from its base class) of type IEmailProcessingParameters. This has a Message member that is a MailMessage object. You can use this to examine all the properties and attachments of the message.