Procedures

Automation procedures in the Microsoft Outlook book.

circle-info

The following documentation is for Microsoft Outlook v2.2.2 (BDK).

circle-exclamation

to delete some emails

Delete specific emails from an Outlook account.

It requires the following permissions on the scopes: Mail.ReadWrite, Mail.ReadWrite.Shared

Input Concepts

Concept
Description
Type
Required
Default Value

The emails to be deleted

outlook email

Yes

(no default)

Examples

Delete the specified emails

...
use the above as the emails
delete the emails

to download an attachment

Download an attachment from an event or email.

It requires the following permissions on the application: Calendars.ReadBasic, Calendars.Read, Calendars.ReadWrite

Input Concepts

Concept
Description
Type
Required
Default Value

The attachment that will be downloaded

outlook attachment

Yes

(no default)

Output Concepts

Concept
Description
Type

answer

The attachment as a file object

file

Examples

Download the attachment for the specified event

to forward an email to a recipient

Forward an email to a specified recipient or group of recipients.

It requires the following permissions on the scopes: Mail.ReadWrite, Mail.ReadWrite.Shared, Mail.Send

Input Concepts

Concept
Description
Type
Required
Default Value

The email to be forwarded

outlook email

Yes

(no default)

recipient

The recipient or recipients of the email

list of text or text

Yes

(no default)

subject

The subject of the forwarded email

text

No

(no default)

cc recipients

The cc recipients of the forwarded email

list of text or text

No

(no default)

bcc recipients

The bcc recipients of the forwarded email

list of text or text

No

(no default)

attachments

The attachments to be sent with the forwarded email

file

No

(no default)

Examples

Forward the specified email to the specified recipients

Forward the specified email to the specified recipients with custom subject

Forward the specified email to the specified recipients with custom cc recipients

Forward the specified email to the specified recipients with custom bcc recipients

Forward the specified email to the specified recipients with attachments

to get a (group's events) from outlook

FILTER - CAPABLE

Get all the events from a group's calendar.

It requires the following permissions on the application: Calendars.Read, Calendars.ReadWrite

Input Concepts

Concept
Description
Type
Required
Default Value

The user's or group's calendar from where the events will be retrieved from

office group

Yes

(no default)

start date time

The start date and time of the events to be retrieved

text

Yes

(no default)

end date time

The end date and time of the events to be retrieved

text

Yes

(no default)

Output Concepts

Concept
Description
Type

All the events for the group

outlook event

Examples

Retrieve all events for the specified group

Retrieve all events for the specified group whose subject matches the specified one

to get a (user's event's attachments)

Get all the attachments from a user's event.

It requires the following permissions on the application: Calendars.ReadBasic, Calendars.Read, Calendars.ReadWrite

Input Concepts

Concept
Description
Type
Required
Default Value

The user's calendar from where the event attachments will be retrieved from

office user

Yes

(no default)

The event from where the attachments will be retrieved from

outlook event

Yes

(no default)

Output Concepts

Concept
Description
Type

All the attachments for the event

outlook attachment

Examples

Retrieve all attachments for the specified event

to get a (user's events) from outlook

FILTER - CAPABLE

Get all the events from a user's calendar.

It requires the following permissions on the application: Calendars.ReadBasic, Calendars.Read, Calendars.ReadWrite

Input Concepts

Concept
Description
Type
Required
Default Value

The user's calendar from where the events will be retrieved from

office user

Yes

(no default)

Output Concepts

Concept
Description
Type

All the events for the user

outlook event

Examples

Retrieve all events for the specified user

Retrieve all events for the specified user whose subject matches the specified one

Retrieve all events whose start date is after Jul 7, 2022 12:30 UTC

to get an email folder's subfolders

FILTER - CAPABLE

Get all the subfolders from an email folder.

It requires the following permissions on the scopes: Mail.Read, Mail.ReadWrite, Mail.ReadBasic, Mail.ReadBasic.All, Mail.ReadWrite.Shared

Input Concepts

Concept
Description
Type
Required
Default Value

The email folder from where the child folders will be retrieved

outlook email folder

Yes

(no default)

Output Concepts

Concept
Description
Type

All the child email folders for the email folder

outlook email folder

Examples

Retrieve all child folders for the specified email folder

Retrieve all child folders for the specified email folder that match provided name

to get some (email folder's emails)

FILTER - CAPABLE

Get emails from an Outlook folder based on specified filters.

It requires the following permissions on the scopes: Mail.Read, Mail.ReadWrite, Mail.ReadBasic, Mail.ReadBasic.All, Mail.ReadWrite.Shared

Input Concepts

Concept
Description
Type
Required
Default Value

The email folder from where the emails will be retrieved

outlook email folder

Yes

(no default)

limit

The maximum number of emails to retrieve

number

No

(no default)

Output Concepts

Concept
Description
Type

All the emails for the email folder

outlook email

Examples

Retrieve all emails for the specified email folder

Retrieve all emails for the specified email folder whose subject matches the specified one

Retrieve all emails for the specified email folder whose received date is after Feb 25, 2024 12:30 UTC

Retrieve all emails for the specified email folder whose sender matches the specified one

Retrieve all emails for the specified email folder whose read status matches the specified one

to get the (attachments) from an email

Get the attachments from an email.

It requires the following permissions on the scopes: Mail.Read, Mail.ReadWrite, Mail.ReadBasic, Mail.ReadBasic.All, Mail.ReadWrite.Shared

Input Concepts

Concept
Description
Type
Required
Default Value

The email from where the attachments will be retrieved

outlook email

Yes

(no default)

Output Concepts

Concept
Description
Type

All the attachments for the email

outlook attachment

Examples

Retrieve all attachments for the specified email

to mark some emails

Mark specified emails as read or unread.

It requires the following permissions on the scopes: Mail.ReadWrite, Mail.ReadWrite.Shared

Input Concepts

Concept
Description
Type
Required
Default Value

The emails to be marked

outlook email

Yes

(no default)

read

The status to mark the emails as. True for read, False for unread.

boolean

No

True

Examples

Mark the specified emails as read

Mark the specified emails as unread

to move an email to a target folder

Move emails to a target folder.

It requires the following permissions on the scopes: Mail.ReadWrite, Mail.ReadWrite.Shared

Input Concepts

Concept
Description
Type
Required
Default Value

email

The email or emails that will be moved

list of outlook email or outlook email

Yes

(no default)

The folder where the emails will be moved

outlook email folder

Yes

(no default)

Examples

Move the specified emails to the target folder

to reply an email

Reply to an email through Outlook with the specified details and attachments.

It requires the following permissions on the scopes: Mail.ReadWrite, Mail.ReadWrite.Shared, Mail.Send

Input Concepts

Concept
Description
Type
Required
Default Value

The email to be replied

outlook email

Yes

(no default)

message body

The body of the reply

text

Yes

(no default)

subject

The subject of the reply

text

No

(no default)

recipients

The recipients of the reply

list of text or text

No

(no default)

cc recipients

The cc recipients of the reply

list of text or text

No

(no default)

bcc recipients

The bcc recipients of the reply

list of text or text

No

(no default)

attachments

The attachments to be sent with the reply

file

No

(no default)

Examples

Reply to the specified email

Reply to the specified email with custom subject

Reply to the specified email with custom cc recipients

Reply to the specified email with custom bcc recipients

Reply to the specified email with attachments

to retrieve some (email folders) from outlook

FILTER - CAPABLE

Get all the email folders from the authenticated user's mailbox.

It requires the following permissions on the scopes: Mail.Read, Mail.ReadWrite, Mail.ReadBasic, Mail.ReadBasic.All, Mail.ReadWrite.Shared

Output Concepts

Concept
Description
Type

All the email folders for the authenticated user

outlook email folder

Examples

Retrieve all email folders for the authenticated user

Retrieve all email folders for the authenticated user that match provided name

to retrieve some (user's email folders)

FILTER - CAPABLE

Get all the email folders from a user's mailbox.

It requires the following permissions on the application: Mail.Read, Mail.ReadWrite, Mail.ReadBasic, Mail.ReadBasic.All, Mail.ReadWrite.Shared

Input Concepts

Concept
Description
Type
Required
Default Value

The user whose email folders will be retrieved

office user

Yes

(no default)

Output Concepts

Concept
Description
Type

All the email folders for the user

outlook email folder

Examples

Retrieve all email folders for the specified user

Retrieve all email folders for the specified user that match provided name

to send an email to a recipient

Send an email through Outlook with the specified details and attachments.

It requires the following permissions on the scopes: Mail.ReadWrite, Mail.ReadWrite.Shared, Mail.Send

Input Concepts

Concept
Description
Type
Required
Default Value

The email to be sent

outlook email

Yes

(no default)

recipient

The recipient or recipients of the email

list of text or text

Yes

(no default)

cc recipients

The cc recipients of the email

list of text or text

No

(no default)

bcc recipients

The bcc recipients of the email

list of text or text

No

(no default)

attachments

The attachments to be sent with the email

file

No

(no default)

The user sending the email. Required for client credentials, otherwise, the user is the authenticated user.

office user

No

(no default)

Examples

Send an email to the specified recipients

Send an email to the specified recipients as a user

Send an email to the specified recipients with custom cc recipients

Send an email to the specified recipients with custom bcc recipients

Send an email to the specified recipients with attachments

to set an entity's event's body to a text

Update the body of a calendar event.

It requires the following permissions on the application: Calendars.ReadWrite

Input Concepts

Concept
Description
Type
Required
Default Value

entity

The user's or group's calendar who owns the event

office group or office user

Yes

(no default)

The event that will be updated

outlook event

Yes

(no default)

text

The content of the body

text

Yes

(no default)

Examples

Update the body of the specified user event

Update the body of the specified group event

Last updated

Was this helpful?