Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.

...

Save attachments Version 10 (Net)

Группа действий: Outlook

Описание

Действие сохраняет в указанную папку вложения из писем, соответствующих идентификатору присвоенному при отборе (отбор писем из Outlook производится с помощью действия "Select message" данной группы). 

Иконка действия

Image Removed

Параметры

Входные параметры

  1. Идентификаторы сообщений - Коллекция с идентификаторами писем. Если в коллекции больше одного элемента, действие будет применено ко всем.

  2. Папка - Путь до папки на компьютере, в которой будут сохраняться вложения. В данной папке будет создаваться отдельная папка для каждого письма с названием из его темы и даты. Если были письма без вложений, для них будет создана папка, которая останется пустой, чтобы соблюсти размерность коллекции при необходимости.

  3. Сохранить изображения - Если значение «true», то изображения из тела письма будут сохранены, иначе – сохранены не будут.

Выходные параметры

Результат - Коллекция путей до созданных папок

...

Description

The action saves attachments from e-mails that correspond to the identifier assigned during selection to the specified folder (e-mails from Outlook are selected using the "Select message" action of this group). 

Action icon

Image Added

Parameters

Input parameters

  1. Message IDs - collection with email IDs. If there is more than one item in the collection, the action will be applied to all.

  2. 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.

  3. Save images - if the value is «true», then the images from the message body will be saved, otherwise they will not be saved.

Output parameters

Result - collection of paths to created folders

Settings

...

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
Message IDsCollection with email IDs. If there is more than one item in the collection, the action will be applied to all.Robin.Collection
Yes
DirectoryThe 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.FolderPathC:\doc\imgYes
Save imagesIf the value is «true», then the images from the message body will be saved, otherwise they will not be saved.Robin.BooleantrueNo
Results
ResultCollection of paths to created foldersRobin.Collection

Пример использования 

Задача



Example of use

Task

Save attachments from Outlook e-mails to the desired directoryСохранить вложения из писем Outlook  в требуемую папку

Решение

Воспользоваться действиями "Завершить процесс", "Запустить процесс", "Выбрать сообщения", "Сохранить вложения"

Реализация

...

Solution


Implementation

  1. Assemble a robot containing the following actions:
    Image Added

  2. Fill in the parameters of the "End Process" action (if Outlook is already running, the second copy will no longer open).
    Image Added

  3. Fill in the parameters of the "Run the process" action.
    Image Added

  4. Fill in the parameters of the "Select messages" action.

    • In the Folder option, select the folder that will contain the email in the mailbox.

    • Set the "Unread" 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 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 only among the ones that have attachments.

    • Set the "Mark as read" parameter to true. This is done so that the e-mails in the mailbox will be marked as read and will not be re-processed at the next start of the robot.

...

Заполнить параметры действия "Запустить процесс".
Image Removed

...

Заполнить параметры действия "Выбрать сообщения".

    • В параметре «Папка» выбираем папку, в которой будет содержаться письмо в почтовом ящике.

    • Параметр «Непрочитанные» - ставим значение true. Это нужно для того, чтобы выбор писем был только среди непрочитанных писем

    • В параметре «Тема» - указываем тему письма «Заявления на отпуск»

    • «Начиная с даты» - указываем дату получения письма. Письма будут выбраны те, которые пришли не раньше указанной даты

    • «Есть вложения» - ставим значение true. Это нужно для того, чтобы выбор писем был только среди писем, имеющих вложения

    • «Пометить как прочитанное» - ставим значение true. Это нужно для того, чтобы письма в почтовом ящике отметились как прочитанные и при следующем запуске робота не подверглись повторной обработке


       5. Заполнить параметр действия "Сохранить вложения"

    • «Идентификаторы сообщений» - выбираем «Выбрать сообщения 1.Идентификаторы выбранных сообщений». Так мы передаем идентификаторы выбранных писем

    • «Папка» - здесь мы указываем полный путь до папки, в которой будут сохраняться вложения из выбранных писем

...

Результат

Робот отработал успешно.

Fill in the "Save attachments" action parameter

    • 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 will be saved

Image Added

Result

The program robot completed successfully.

The attachments from the selected e-mail are saved to the called directory. В требуемую папку сохранены вложения из указанных писем.