Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

Microsoft Outlook connector methods

The Microsoft Outlook connector methods automate various actions on the Microsoft Outlook. In an automation flow, the methods are connected with other methods and components. To use the methods, you must first expose them.

The Microsoft Outlook connector enables the automation of routine tasks within the Microsoft Outlook application, integrating these functions into broader automated workflows.

You can automate processes such as sending or replying to emails without manual intervention. This connector provides various methods to facilitate the automation of actions within Microsoft Outlook. These methods can be seamlessly combined with other methods or components within an automation framework, enabling more complex and efficient workflow designs.

AddFolder

Adds a new folder within a specified hierarchy and, optionally, a sub folder to the Outlook account set.

ParameterDescriptionData port typeData type
MainFolderName of the folder that the method adds to the Outlook account.This parameter specifies the main folder where the new folder is added.Data inString
SubFolderNameName of the sub folder that the method adds under the main folder.This parameter specifies the name of the new folder to be created. If you use this parameter, you must use the IsSubFolder parameter.Data inString
IsSubFolderOption to indicate that the folder created in the SubFolderName parameter is a subfolder under the main folder.This parameter indicates whether the SubFolderName must be added as a subfolder within the main folder. Defaults to False, meaning SubFolderName is added directly under the main folder.Data inBoolean

Close

Closes the Microsoft Outlook explorer by specifying the profile name.

This method can be used as a cleanup activity after all automation tasks are completed.

ParameterDescriptionData port typeData type
ProfileNameThis parameter specifies the Outlook profile name that you want to close.Data inString

DeleteFolder

Deletes the specified folder and all subfolders under it.

ParameterDescriptionData port typeData type
FolderNameName of the folder that the method deletes.Data inString

DeleteMail

Deletes one or more emails. Deletes an email based on its unique entry ID.

Tip: Use the GetMails method to provide the emails the DeleteMail method will delete.

ParameterDescriptionData port typeData type
MailIdTakes the email from which the method deletes the emails.This parameter specifies the unique entry ID of the email that needs to be deleted.Data inString

ForwardMail

Forwards an email based on its unique entry ID to a specified email address (EmailID).

ParameterDescriptionData port typeData type
MailIdThis parameter specifies the unique entry ID of the email that needs to be forwarded.Data inString
EmailIDThis parameter specifies the email address to which the email must be forwarded.Data inString
CCThis parameter specifies Email address to send a carbon copy \(CC\) of the forwarded email.Data inString
BCCThis parameter specifies Email address to send a blind carbon copy \(BCC\) of the forwarded email.Data inString
SubjectThis parameter specifies the subject line of the forwarded email.Data inString
ReturnThis method returns a boolean value indicating whether the email was successfully forwarded. A return value of true signifies that the operation was successful.Data outBoolean

GetAttachmentNames

Retrieves a list of attachment names associated with an email specified by its unique entry ID.

ParameterDescriptionData port typeData type
MailIdThis parameter specifies the unique entry ID of the email for which attachment names are to be retrieved.Data inString

GetExistingAccounts

Retrieves information about configured accounts such as a list of configured accounts and their count.

This is helpful when there are multiple accounts configured in the outlook.

ParameterDescriptionData port typeData type
AccountsThis parameter is passed by reference and is expected to be a List (Of String). Upon calling this method, it is populated with the list of configured account names.Data outList1
CountThis parameter is passed by reference. Upon calling this method, this parameter is populated with the count of configured accounts.Data outInt32

GetFolderNames

Retrieves and returns a list of folder names from the active outlook account.

ParameterDescriptionData port typeData type
ReturnReturns the list of folder names from the active outlook account.Data outList1

GetMail

Retrieves all details of an email, specified by its unique entry ID (MailId).

To specify additional criteria for retrieving all details of an email, on the GetMail method bar, click the method settings icon (

Image omitted: component-settings-icon.png
Method settings icon.\), select the required mail items such as CC, BCC, Subject, Body, Sender, To, AttachmentsCount, ReceivedTime, EntryId.
ParameterDescriptionData port typeData type
MailIdThis parameter specifies the unique entry ID of the email to retrieve details from.Data inString

GetMails

Retrieves a list of mail entry IDs from a specified folder within an email system.

The GetMails method retrieves a list of mail entry IDs from a specified folder within an email system.

ParameterDescriptionData port typeData type
FolderNameThis parameter specifies the name of the folder from which to retrieve mail entry IDs.Default value is "Inbox".Data inString
FilterThis parameter specifies a filter condition to apply when retrieving mail entry IDs.Data inString
NoOfMailsThis parameter specifies the maximum number of mail entry IDs to retrieve. Default value is 10.Data inInt32
UnreadOnlyThis parameter indicates whether to retrieve only unread mails \(True\) or all mails \(False\). Default is True.Data inBoolean
AvoidMeetingItemsThis parameter specifies whether to exclude meeting items from the retrieved mail entry IDs. Default is True.Data inBoolean
FetchingOrderThis parameter specifies the order in which mails are fetched. For example, FIFO, LIFO. Default is FIFO.Data inFetchingOrder
ReturnThis parameter returns a list of emails from the specified folder.Data outList1
CountThis parameter specifies total count of mail entry IDs retrieved.Data outInt32

GetSenderName

Retrieves the sender's email address associated with an email specified by its unique entry ID.

ParameterDescriptionData port typeData type
MailIdThis parameter specifies the unique entry ID of the email for which the sender's email address is to be retrieved.Data inString
ReturnThis method returns a string value indicating sender name.Data outString

MarkAsRead

Marks an email as read based on its unique entry ID.

ParameterDescriptionData port typeData type
MailIdThis parameter specifies the unique entry ID of the email for which the sender's email address is to be retrieved.Data inString
ReturnThis method returns a boolean value indicating whether the email was successfully marked as read.A return value of true signifies that the operation was successful.Data outBoolean

MarkAsUnread

Marks an email as unread based on its unique entry ID.

ParameterDescriptionData port typeData type
MailIdThis parameter specifies the unique entry ID of the email that needs to be marked as unread.Data inString
ReturnThis method returns a boolean value indicating whether the email was successfully marked as unread. A return value of true signifies that the operation was successful.Data outBoolean

MoveMail

Moves an email based on its unique entry ID from one folder to another folder within the email system.

ParameterDescriptionData port typeData type
MailIdThis parameter specifies the unique entry ID of the email that must be moved.Data inString
DestinationFolderThis parameter specifies the name or path of the destination folder where the email must be moved.Data inString

ReadMsgFile

Reads the contents of a .msg file from the file system.

ParameterDescriptionData port typeData type
FilepathThis parameter specifies the path to the .msg file that must be read.Data inString
BodyThis parameter is passed by reference (ByRef) and is populated with the body content of the .msg file after the method call.Data outString

Reply

Generates and sends a reply to an email specified by its unique entry ID.

ParameterDescriptionData port typeData type
MailIdThis parameter specifies the unique entry ID of the email to which the reply is sent.Data inString
CCThis parameter specifies Email address to send a carbon copy \(CC\) of the reply.Data inString
BCCThis parameter specifies email address to send a blind carbon copy \(BCC\) of the reply.Data inString
SubjectThis parameter specifies the subject line of the reply email.Data inString
BodyThis parameter specifies the body content of the reply email.Data inString
AttachmentsThis parameter specifies file paths of the attachments to include in the reply email. Multiple files can be separated by the pipe symbol or the vertical bar \(\|\) to split the attachment file paths. When you upgrade automations to plugins above 13.0, update earlier automations that use "," or ";" with "\|", when multiple file paths are passed. Use the pipe symbol or the vertical bar \(\|\) to split the attachment file paths.Data inString
IsHtmlBodyThis parameter indicates whether the body content of the reply email is in HTML format. Default is False.Data inBoolean
ReturnThis method returns a boolean value indicating whether the reply was successfully sent. A return value of true signifies that the operation was successful.Data outBoolean

SaveAllAttachments

Saves all attachments from an email specified by its unique entry ID into a specified folder path.

ParameterDescriptionData port typeData type
MailIdThis parameter specifies the unique entry ID of the email from which attachments must be saved.Data inString
FolderPathThis parameter specifies the path of the folder where attachments must be saved.Data inString

SaveAttachment

Saves specified attachment of a mail with given entry ID into a given file.

ParameterDescriptionData port typeData type
MailIdThis parameter specifies the unique entry ID of the email from which attachment must be saved.Data inString
AttachmentNameThis parameter specifies the name of the attachment that must be saved.Data inString
FilepathThis parameter specifies the path of the file where attachment must be saved.Data inString

SaveMail

Saves an email specified by its unique entry ID (MailId) to a file at a specified file path.

ParameterDescriptionData port typeData type
MailIdThis parameter specifies the unique entry ID of the email to be saved.Data inString
FilepathThis parameter specifies the path where the email must be saved as a fileData inString
SaveTypeThis parameter specifies the format in which the email must be saved. Default is MsgSaveType.olMSG, indicating Microsoft Outlook MSG format.Data inMsgSaveType

SendMail

Sends an email to recipient. It offers various optional parameters to customize the email, including the ability to add images, set the sender's address, and specify CC and BCC recipients.

ParameterDescriptionData port typeData type
ToEmailIdThis parameter specifies email address of the recipient.Data inString
ImageThis parameter specifies an optional image to include in the email.Data inDrawing.Bitmap
FromThis parameter specifies the email address of the sender. If not specified, the default sender's address is used.Data inString
CCThis parameter specifies Email address to send a carbon copy \(CC\) to.Data inString
BCCThis parameter specifies email address to send a blind carbon copy \(BCC\) to.Data inString
SubjectThis parameter specifies the subject line of the email.Data inString
BodyThis parameter specifies the body content of the email.Data inString
AttachmentsThis parameter specifies file paths of the attachments to include in the email.Multiple files can be separated by the pipe symbol \(\|\) to split the attachment file paths. When you upgrade automations to plugins above 13.0, update earlier automations that use "," or ";" with "\|", when multiple file paths are passed. Use the pipe symbol or the vertical bar \(\|\) to split the attachment file paths.Data inString
IsHtmlBodyThis parameter indicates whether the body of the email is in HTML format. Default is False.Data inBoolean
ReturnThis method returns a boolean value indicating whether the email was successfully sent. A return value of true signifies that the operation was successful.Data outBoolean

SentAs

Sends an email on behalf of another email account.

ParameterDescriptionData port typeData type
ToEmailIdThis parameter specifies email address of the recipient.Data inString
SentOnBehalfEmailIDThis parameter specifies email address on whose behalf the email will be sent.Data inString
SubjectThis parameter specifies the subject line of the email.Data inString
BodyThis parameter specifies the body content of the email.Data inString
AttachmentsThis parameter specifies file paths of the attachments to include in the email.Multiple files can be separated by the pipe symbol \(\|\) to split the attachment file paths. When you upgrade automations to plugins above 13.0, update earlier automations that use "," or ";" with "\|", when multiple file paths are passed. Use the pipe symbol or the vertical bar \(\|\) to split the attachment file paths.Data inString
IsHtmlBodyThis parameter indicates whether the body of the email is in HTML format. Default is False.Data inBoolean

SetAccount

Specifies the outlook account on which you want to perform operations for your automation tasks.

The SetAccount method must be used initially, before any other method of this connector, to specify or set the context or email account for subsequent methods to execute upon.

ParameterDescriptionData port typeData type
AccountNameThis parameter specifies the Outlook email account ID on which you want to perform operations.Data inString

Parent Topic:Microsoft Outlook