# 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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.visualyze.ai/rpa-studio/application/mail/outlook/save-outlook-attachment.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
