Office 365

Studio Pro activities > MS Office > Office 365. Incudes "Read emails" and "Send email".

Activities

Read emailsSend email
Read emails stored in your Microsoft accountSends an email using a Microsoft account

Read emails

Description

This activity is used to read emails stored in your Microsoft 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

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

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

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

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.

  1. Set a value: allows you to manually set the number of emails your bot should process.
  2. Calculate a value: allows you to use a special formula or a special method to specify the number of emails your bot should process.
  3. 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.

  1. Set a value: allows you to manually set the name of the folder, where the emails will be moved.
  2. Calculate a value: allows you to use a special formula or a special method to specify the folder.
  3. Save the previous step result: takes the result of the action from the previous workflow step as the name of the folder.

⬅️

Back to the top


Send email

Description

Sends an email using a Microsoft account.

Parameters

Mail to

  1. Set a value: enables you to directly write the email to receive a message.
  2. Save the previous step result: chooses the previous activity result as an email.
  3. Calculate a value: enables you to use available properties and methods to form an email.

Mail CC

  1. Set a value: enables you to directly write the email which will be added as a copy email address to the message.
  2. Save the previous step result: chooses the previous activity result as an email.
  3. Calculate a value: enables you to use available properties and methods to form an email.

Mail BCC

  1. Set a value: enables you to type the email to be added as a Blind Carbon Copy to the message.
  2. Save the previous step result: chooses the previous activity result as an email.
  3. Calculate a value: enables you to use available properties and methods to form an email.

📘

Note

As of version 8.7 in both parameters Mail CC and Mail BCC you can add multiple recipients separated with ; or ,.

Subject

  1. Set a value: enables you to directly provide an email subject text.
  2. Save the previous step result: chooses the previous activity result as a subject.
  3. Calculate a value: enables you to use available properties and methods to form a subject.

Mail body

  1. Set a value: enables you to directly write an email message text.
  2. Save the previous step result: chooses the previous activity result as a text to write.
  3. Calculate a value: enables you to use available properties and methods to form an email message text.

Attachment

  1. Set a value: enables you to directly write a path to the file that is to be attached. Clicking the 'Pick' button allows you to manually choose the path.
  2. Save the previous step result: chooses the previous activity result as a path.
  3. Calculate a value: enables you to use available properties and methods to form a path.

If the "Add directory" checkbox is selected then all files from the specified directory will be sent as attachments. All the options above are applied to a folder path not to a file path.

To specify several files to be attached, use the following format of the path (in “Calculate a value” option):

["C:\\Users\\ElectroNeek\\Desktop\\attachment\\request.neek","C:\\Users\\ElectroNeek\\Desktop\\attachment\\main.neek"]

Comment

Contains an annotation to the activity. The input text will be displayed above the activity name.

Sending emails to multiple recipients

This activity allows you to send emails to several recipients at a time. To specify two or more email addresses as recipients, use “;” or “,” as a separator. For example:

Usage Examples

This activity can be used every time when you need to send an email. For example, you can configure your workflow in a way that it will send an email message with the process results to responsible people before finishing.

⬅️

Back to the top