Procedures
Automation procedures in the Microsoft Outlook book.
Make sure to add both the Microsoft Outlook and the Microsoft Office 365 Books to your agent before using these automation procedures.
to delete some emails
Deletes specific emails from an Outlook account.
It requires the following permissions on the scopes: Mail.ReadWrite, Mail.ReadWrite.Shared
Input Concepts
Examples
Delete the specified emails
...
use the above as the emails
delete the emailsto download an attachment
Download the attachment from the specified event or email.
It requires the following permissions on the application: Calendars.ReadBasic, Calendars.Read, Calendars.ReadWrite
Input Concepts
Output Concepts
answer
The attachment as a file object
file
Examples
Download the attachment for the specified event
to forward an email to a recipient
Forwards an email to a specified recipient or group of recipients.
If the email body contains Markdown formatting, it will be sent as HTML content. Otherwise, it will be sent as plain text. It requires the following permissions on the scopes: Mail.ReadWrite, Mail.ReadWrite.Shared, Mail.Send
Input Concepts
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
Retrieve all the events that are in the specified user's calendar.
It requires the following permissions on the application: Calendars.Read, Calendars.ReadWrite
Input Concepts
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
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)
Retrieve all the attachments that are in the specified user's event.
It requires the following permissions on the application: Calendars.ReadBasic, Calendars.Read, Calendars.ReadWrite
Input Concepts
Output Concepts
Examples
Retrieve all attachments for the specified event
to get a (user's events) from outlook
Retrieve all the events that are in the specified user's calendar.
It requires the following permissions on the application: Calendars.ReadBasic, Calendars.Read, Calendars.ReadWrite
Input Concepts
Output Concepts
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
Retrieve all the child email folders that are in the specified email folder.
It requires the following permissions on the scopes: Mail.Read, Mail.ReadWrite, Mail.ReadBasic, Mail.ReadBasic.All, Mail.ReadWrite.Shared
Input Concepts
The email folder from where the child folders will be retrieved
outlook email folder
Yes
(no default)
Output Concepts
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)
Retrieve emails from Outlook based on specified filters such as date, sender, and read/unread status.
It requires the following permissions on the scopes: Mail.Read, Mail.ReadWrite, Mail.ReadBasic, Mail.ReadBasic.All, Mail.ReadWrite.Shared
Input Concepts
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
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
Retrieve the attachments from the specified email.
It requires the following permissions on the scopes: Mail.Read, Mail.ReadWrite, Mail.ReadBasic, Mail.ReadBasic.All, Mail.ReadWrite.Shared
Input Concepts
Output Concepts
Examples
Retrieve all attachments for the specified email
to mark some emails
Marks specified emails as read or unread.
It requires the following permissions on the scopes: Mail.ReadWrite, Mail.ReadWrite.Shared
Input Concepts
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 specified Outlook emails to a target folder.
It requires the following permissions on the scopes: Mail.ReadWrite, Mail.ReadWrite.Shared
Input Concepts
email
The email or emails that will be moved
list of outlook email or outlook email
Yes
(no default)
Examples
Move the specified emails to the target folder
to reply an email
Replies to an email through Outlook with the specified details and attachments.
If the message body contains Markdown formatting, it will be sent as HTML content. Otherwise, it will be sent as plain text. It requires the following permissions on the scopes: Mail.ReadWrite, Mail.ReadWrite.Shared, Mail.Send
Input Concepts
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
Retrieve all the email folders that are in 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
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)
Retrieve all the email folders that are in the specified 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
Output Concepts
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
Sends an email through Outlook with the specified details and attachments.
If the email body contains Markdown formatting, it will be sent as HTML content. Otherwise, it will be sent as plain text. It requires the following permissions on the scopes: Mail.ReadWrite, Mail.ReadWrite.Shared, Mail.Send
Input Concepts
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
Retrieve all the events that are in the specified entity's calendar.
It requires the following permissions on the application: Calendars.ReadWrite
Input Concepts
entity
The user's or group's calendar who owns the event
office group or office user
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?
