Outlook Get Attachments
Outlook Get Attachments
Section titled “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.
How it works
Section titled “How it works”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…).
Required parameters
Section titled “Required parameters”| Parameter | Editor | Description |
|---|---|---|
entryId | expression | Mail EntryID (from correo.Id). |
outputDir | expression | Local folder where to save the attachments. |
Optional parameters
Section titled “Optional parameters”| Parameter | Editor | Description |
|---|---|---|
session | session | Outlook Connect session. If omitted, use the default account. |
Output
Section titled “Output”Returns a List with the paths of the saved files.
Example
Section titled “Example”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 ...Related activities
Section titled “Related activities”- Outlook Get Emails — get emails (and their EntryIDs).
- Create Directory — ensure that
outputDirexists.