История страницы
Save attachments Version 10 (Net)
Группа действийAction group: Outlook
...
Description
The action saves attachments from e-mails emails that correspond to the identifier assigned during selection to the specified folder (e-mails emails from Outlook are selected using the "Select message" action of this group).
...
Property | Description | Type | Filling example | Mandatory field |
---|---|---|---|---|
Parameters | ||||
Message IDs | Collection with email IDs. If there is more than one item in the collection, the action will be applied to all. | Robin.Collection | Yes | |
Directory | The path to the folder on your computer where attachments will be saved. A separate folder will be created in this folder for each email with a name from its subject and date. If there were emails without attachments, a folder will be created for them, which will remain empty to keep the dimension of the collection, if necessary. | Robin.FolderPath | C:\doc\img | Yes |
Save images | If the value is «true», then the images from the message body will be saved, otherwise they will not be saved. | Robin.Boolean | true | No |
Results | ||||
Result | Collection of paths to created folders | Robin.Collection |
Example of use
Task
Save attachments from Outlook e-mails emails to the desired directory.
Solution
Use "Terminate", "Run", "Select message", "Save attachments" actions
Implementation
Assemble a robot scheme containing the following actions:
Fill in the parameters of the "End ProcessTerminate" action (if Outlook is already running, the second copy will no longer open).
Fill in the parameters of the "Run the process" action.
Fill in the parameters of the "Select messagesmessage" action.
In the Folder option, select the folder that will contain the email in the mailbox.
Set the "Unread only" parameter to true. It is necessary to select e-mails only among the unread ones.
In the "Subject" parameter specify the subject of the email - "Application for leave".
In the "From date" parameter specify the date when the e-mail email was received. Letters will be selected if they are received not earlier than the specified date.
Set the "Attachment exist" parameter to true. This is important to select e-mails emails only among the ones that have attachments.
Set the "Mark as read" parameter to true. This is done so that the e-mails emails in the mailbox will be marked as read and will not be re-processed at the next start of the robot.
...
In the "Message IDs" select "Select messages 1. Selected message IDs". This is how the identifiers of the selected messages are transferred.
In the "Directory" specify the full path to the folder where attachments from the selected e-mails emails will be saved
Result
The program robot completed successfully.
The attachments from the selected e-mail email are saved to the called directory.
...