Skip to content

Outlook Activities

Version: 1.0.0  ·  ID: zoan-packages-outlook  ·  Author: Zoan Software

The Outlook package automates Microsoft Outlook desktop: sending emails, reading the inbox, downloading attachments, moving messages between folders, replying and deleting. It is ideal for mail-based processes: reading orders that arrive by email, downloading attached invoices, sending notifications, classifying messages.

Most activities work directly, without prior steps: they use the default Outlook account. For example, you can put a Outlook Get Emails on its own and it will read your Inbox.

If you need to use a specific account (not the default one) or do several operations in a row efficiently, open a session with Outlook Connect:

Outlook Connect account = "soporte@empresa.com"
└─ body:
Outlook Get Emails folder = "Inbox" → output: correos
... procesar ...

Within body, activities inherit the session (and your account) automatically, and close themselves when finished. Without body, Outlook Connect returns the session as a variable and you close it with Outlook Close.

The core pattern of this package: Outlook Get Emails returns an email list (ZoanMail). Each email has a unique identifier, its EntryID, accessible as .Id. The other activities (save attachments, move, mark, delete, reply) receive that entryId to know which email to act on.

Outlook Get Emails folder = "Inbox" unreadOnly = true → output: correos
For Each items = = correos itemVariable = correo
└─ activities:
Outlook Get Attachments entryId = = correo.Id outputDir = "C:/adjuntos" → output: archivos
Outlook Mark Read entryId = = correo.Id
Outlook Move Email entryId = = correo.Id targetFolder = "Inbox/Procesados"

The properties of each email (.Subject, .From, .Body, .Attachments, .IsRead…) are documented in Data types › ZoanMail.

ActivityTypeOutputWhat it does
Outlook Connectoutlook-connectZoanOutlookSessionOpen a session (specific account / various operations)
Outlook Closeoutlook-closeClose an open session
ActivityTypeOutputWhat it does
Outlook Send Emailoutlook-sendSend an email
Outlook Replyoutlook-replyReply to an email
ActivityTypeOutputWhat it does
Outlook Get Emailsoutlook-get-emailsListRead emails from a folder
Outlook Get Attachmentsoutlook-get-attachmentsListSave email attachments
ActivityTypeOutputWhat it does
Outlook Mark Readoutlook-mark-readMark an email as read/unread
Outlook Move Emailoutlook-move-emailMove an email to another folder
Outlook Delete Emailoutlook-delete-emailSend an email to Deleted Items