Microsoft Office Local Library Object

In APA 7.3, new business entity types and functions added to the Real-Time Designer provide functionality for connecting directly to a Microsoft Office 365 server and handling Microsoft Outlook 365 email resources without having Outlook installed locally on the Real-Time Client computer. From this release, a new library provides the same functions and business entities for handle Outlook email resources through a local installation of Outlook on the Real-Time Client computer.

In APA 7.6, the Move Email to Folder function was added. This moves an email message from one folder to another.

In APA 7.7, the Add Recipient(s) to Outlook Email and Get Active Email functions was added.

For details on incorporating this functionality into your solutions, see Using Microsoft Outlook 365.

This library includes the following business entities:

  • Outlook Email, found in Business Entities > Library Types > Microsoft Outlook, which contains the properties you need to work with Outlook 365 email messages. For details, see Outlook Email Business Entity.

  • Outlook Attachment Info, found in Business Entities > Library Types > Microsoft Outlook, which contains the properties you need to work with Outlook 365 email message attachments. For details, see Outlook Attachment Info Business Entity.

The library functions are exposed under Project > References > Library References > Direct.MsOffice.Local.Library. For details, see Microsoft Office Local Library Functions.

Outlook Attachment Info Business Entity

The Outlook Attachment Info business entity found in Business Entities > Library Types > Microsoft Outlook holds email message attachment details.

The Outlook Attachment Info business entity includes the following properties:

Property

Input Type

Description

ContentType Text The MIME type of the attachment content.
Id Text A unique identifier of the attachment, assigned by the server. This is used in the function Download Attachment to identify the attachment to be downloaded.
Is Inline Boolean

Indicates if the attachment is an inline attachment or a non-inline attachment. Currently only non-inline attachments are supported, so the value of this property is always False.

Name Text

A friendly string identifier of the attachment.

Size Number The size of the attachment, in bytes.

Outlook Email Business Entity

The Outlook Email business entity found in Business Entities > Library Types > Microsoft Outlook holds email message details.

Typically, Outlook Email objects are returned by the functions Get Emails or Get Matching Emails, and can then be manipulated, for example by forwarding or deleting them. The exception is Send Email, for which you need to build an Outlook Email object before you can send it.

The Outlook Email business entity includes the following properties:

Property

Input Type

Description

Attachments Info List of Outlook Attachment Info

A list of the Outlook Attachment Info business entities that hold the details of the attachments of this email message.

Body Text

The content of the email message.

Cc List of Text A list of valid email addresses of the CC recipients of the email message.
Has Attachments Boolean Indicates if the email message has at least one attachment (True), or no attachments (False) (read-only).
Id Text The ID of the email message, assigned by the Office 365 server (read-only).
Is HTML Boolean Indicates if the email message content is HTML formatted (True), or not HTML formatted (False) (read-only).
Is Read Boolean Indicates if the email message has been read (True) or not (False) (read-only).
Preview Text A text preview of the email message content (read-only).
Received DataTime DateTime The date and time the email message was received (read-only).
Sender Text A valid email address of the email message sender (read-only).
Sent DateTime DateTime The date and time the email message was sent (read-only).
Subject Text The email message subject.
To List of Text A list of valid email addresses of the direct recipients of the email message.

The Outlook Email business entity includes the following function:

Microsoft Office Local Library Functions

The library functions for accessing and manipulating local Outlook 365 email resources are exposed under Library Objects > Direct.MsOffice.Local.Library.