Skip to content

Outlook Get Attachments

Type: outlook-get-attachments  ·  Package: Outlook Activities v1.0.0  ·  Output: List

Saves email attachments to a local folder and returns the path list of the saved files. It is key in processes that receive documents by mail: PDF invoices, Excel spreadsheets, etc.

Based on the EntryID of an email (obtained from Outlook Get Emails), it saves all its attachments in outputDir and returns the resulting routes. Then you process those files with the corresponding package (Excel, PDF…).

ParameterEditorDescription
entryIdexpressionMail EntryID (from correo.Id).
outputDirexpressionLocal folder where to save the attachments.
ParameterEditorDescription
sessionsessionOutlook Connect session. If omitted, use the default account.

Returns a List with the paths of the saved files.

Save the invoices attached to each email and process them:

For Each items = = correos itemVariable = correo
└─ activities:
Outlook Get Attachments entryId = = correo.Id outputDir = "C:/facturas" → output: archivos
For Each items = = archivos itemVariable = ruta
└─ activities:
Read Excel Sheet path = = ruta → output: datos
... procesar ...