Email property dictionary keys for Microsoft 365 Outlook - Find the dictionary variable keys available when you automate Microsoft 365 Outlook tasks in Automation Workspace . Use these keys to access email properties such as subject, sender, recipients, and received date in downstream actions and variables.

Automation 360

Find the dictionary variable keys available when you automate Microsoft 365 Outlook tasks in Automation Workspace. Use these keys to access email properties such as subject, sender, recipients, and received date in downstream actions and variables.

The Microsoft 365 Outlook package retrieves the following email properties and stores them in a dictionary variable:

Email property Data type Description
emailSentTime String Retrieves the time when the email was sent.
emailCc String Retrieves the recipient email address from the CC list.
emailReceivedDate String Retrieves the date when the email was received.
emailMessage String Retrieves the text from the email body.
emailNoOfAttachments String Retrieves the attachment count. If there are no attachments, the count displayed is 0.
emailFrom String Retrieves the email address of the sender.
emailID String Retrieves the email message ID.
emailTo String Retrieves the recipient's email address.
emailBcc String Retrieves the email address of the BCC recipients.
emailSentDate String Retrieves the date when the email was sent.
emailReceivedTime String Retrieves the time when the email was received.
emailSubject String Retrieves the email subject.

The date and time of received and sent emails use the following format:

  • Date: dd/MM/yyyy HH:mm:ss

    Sample output: 22/09/2022 17:07:13

  • Time: HH:mm:ss Z

    Sample output: 17:07:13 +0900

The system automatically associates the properties of an email with the appropriate dictionary keys. You can use the values stored in these dictionary keys in another task, in a database query, or in any downstream process. For example, if you have created a dictionary variable 'Test' and want to display the subject and sender of an email in a message prompt, you must enter Test{emailSubject} and Test{emailFrom} in the appropriate fields.

If you press F2 to use a variable in a field, you must select Test from the Choose a variable list and enter emailSubject in the Dictionary key field in the Insert a variable dialog to store the subject of an email in that field. Similarly, you can enter emailFrom in the Dictionary key field to use the email address of the sender of an email in a field.

The dictionary key variable is required for all email-related tasks you automate from Microsoft 365 Outlook if you want to use the email properties. You can use the dictionary key variable for the following Microsoft 365 Outlook actions:
  • Change status
  • Delete
  • Forward
  • Reply
  • Save attachments
  • Save email to file stream
  • Save email
    Note: The time required to save an email varies based on the size of the attachments available in that email.