Description
This activity is used to read emails stored in your Outlook account starting from a specified date. It is also possible to download the attachments from these emails.
This action requires a connected Microsoft account. To connect your account, open the Settings → Services menu and log in to your Microsoft account.
Here you can connect your account
Read emails from folders and subfolders
With this activity, you can read emails from any folders and subfolders in your mail client. Typically, a mail client has a hierarchy of several folders, e.g:
- Inbox
- Inbox subfolder
- Sent
- Important
- Important subfolder
- Drafts
If you want to read emails from a certain folder, you have to specify its full name with a /
character, for example:
Inbox/{{Subfolder name}}
Please note that in this case, you must specify the original name of the folder. If in your mail client the inbox is called "Inbox", you must write the name of the parent folder. For example, if the "Inbox" folder contains the "Work" folder, you must write the path to the folder in the "Mail folder name" parameter like this:
Inbox/Work
Parameters
The emails are read starting from the specified date. It is set in Date from parameter.
Date from parameter
As of the 5.4 update, it was expanded with the following parameters: Filter by status, Filter by content, Attachments, and Mail folder name.
New parameters
Download attachments
If it is checked, the Directory path template parameter will appear. It lets you specify the folder where the attachments will be saved. It is also possible to add {{date}} and {{subject}} keywords. In this case, the bot will automatically create subfolders based on the subject and date of the read email.
Example:
C:\User\folder_name
C:\User\folder_name\{{date}}\{{subject}}
Download attachments option and Directory path template parameter
Save duplicate with a new name
With this option, it is possible to save several files with the same name in the same folder. Thus, the second and subsequent files will not overwrite the first one, but will be saved under a new name - the date in unix format will be added before the name of the file itself.
Emails Limit
This parameter only takes non-negative integers and allows you to limit the number of emails your bot should process. For example, if “Emails Limit” is equal to five, then your bot will read only the first five emails.
- Set a value: allows you to manually set the number of emails your bot should process.
- Calculate a value: allows you to use a special formula or a special method to specify the number of emails your bot should process.
- Save the previous step result: takes the result of the action from the previous workflow step as the number of emails your bot should process.
Download original
If you select this checkbox, all downloaded messages will have the new {{keyword}}
parameter — original
. The original
parameter contains a raw email body in the HTML format.
Move to folder
This option allows you to move the read emails to a certain folder in the mailbox.
- Set a value: allows you to manually set the name of the folder, where the emails will be moved.
- Calculate a value: allows you to use a special formula or a special method to specify the folder.
- Save the previous step result: takes the result of the action from the previous workflow step as the name of the folder.