# Save Attachments

Saves the mail attachments of a work to the specified folder.


---

### :arrow_left:**INPUT**

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `WorkId`  | `Guid?` | ✅**Yes** | ID of the work record |
| `FolderPath` | `String` | ✅**Yes** | Folder path to save to |
| `ExtensionFilter` | `String` | ❌No      | Extension filter (e.g. "xlsx, png") |
| `CreateFolderIfNotExist` | `Boolean` | ❌No      | Whether to create the folder if it does not exist |


---

### :arrow_right:**OUTPUT**

| Parameter | Type | Description |
|-----------|------|-------------|
| `IsSaveAttachmentsSuccessful` | `Boolean` | Whether the save succeeded |
| `SaveAttachmentsMessage` | `String` | Result/error message |


---

### :arrow_down:**MISC**

| **Parameter** | **Type** | **Default** | **Description** |
|-----------|------|---------|-------------|
| `ThrowException` | `Boolean` | ❌No     | Throw exception on error |