> For the complete documentation index, see [llms.txt](https://docs.visualyze.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.visualyze.ai/rpa-studio/application/mail/outlook/save-outlook-attachment.md).

# Save Outlook Attachment

This activity saves the outlook mail message attachments to the user-specified folder. If the user-specified folder does not exist, it is created. If no folder is specified by the user to save the attachment, then by default the downloads are saved in the project folder.

{% hint style="info" %}
This activity can only be used after [Get Outlook Mail](/rpa-studio/application/mail/outlook/get-outlook-mail.md).
{% endhint %}

### Input

* **Mail Message:** [`MailMessage Variable`](/getting-started/rpa-studio/variables/activity-variables.md#mimemessage-1) <mark style="color:red;">`Required`</mark>\
  The mail message object whose attachments are to be saved.
* **Output Folder  Path:** [`String Argument`](/getting-started/rpa-studio/arguments.md#types-of-arguments) <mark style="color:red;">`Required`</mark>\
  The full path of the folder where the attachments are to be saved.

### Options

* **Filter:**[`String Argument`](/getting-started/rpa-studio/arguments.md#types-of-arguments)\
  Specifies a regular expression filter where only the attachment names that meet the filter conditions will be saved.

### Output

* **Attachments:**[`IEnumerable Variable`](/getting-started/rpa-studio/variables.md#ienumerable)\
  Stores the resultant attachment list in an [IEnumerable ](/getting-started/rpa-studio/variables.md#ienumerable)variable
