Microsoft Outlook
Procedures and concepts for the Microsoft Outlook integration.
The following documentation is for Microsoft Outlook v2.2.3 (BDK).
Overview
Microsoft Outlook provides enterprise email management with calendar, contacts, and task integration capabilities. This integration enables automated email processing, calendar management, and communication workflows. Streamline business communication and enhance productivity through automated email operations.
Prerequisites
1. Required Books
The following Book(s) need to be added to your agent so it can learn and understand the automation procedures defined within them:
Microsoft Outlook
How to Add the Book(s)
Go to Books → All Books.
Search for the name of the book and click on it.
Click on Install or Add Connection to add the book to your agent.
If adding a connection, you'll be prompted for connectivity details.
Connectivity
This section outlines the available methods for connecting to the Book, along with the required configuration details for each.
This books supports the connectivity methods described in this section.In here you will find information about what information is required in order to employ each method.
Connect using Client ID, Client Secret and Tenant ID
Connect to the Microsoft Graph API using the provided client credentials.
Client ID
The client ID of the application registered in Azure AD.
text
Client Secret
The client secret of the application registered in Azure AD.
text
Tenant ID
The tenant ID of the Azure AD directory.
text
Connect using Client ID, Certificate and Tenant ID
Connect to the Microsoft Graph API using certificate credentials.
Client ID
The client ID of the application registered in Azure AD.
text
Certificate
PEM-encoded X.509 certificate string containing both the certificate and private key.
sensitive
Tenant ID
The tenant ID of the Azure AD directory.
text
Connect using Client ID, Certificate, Private Key and Tenant ID
Connect to the Microsoft Graph API using certificate and private key.
Client ID
The client ID of the application registered in Azure AD.
text
Certificate
PEM-encoded certificate string.
sensitive
Private Key
PEM-encoded private key string.
sensitive
Tenant ID
The tenant ID of the Azure AD directory.
text
Procedures
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
Examples
Delete the specified 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
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
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
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
Get all the events from a group'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)
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
Output Concepts
Examples
Retrieve all attachments for the specified event
to get a (user's events) from outlook
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
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
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
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)
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
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
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
Output Concepts
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
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
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
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
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
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
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)
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
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
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
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
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
Concepts
Outlook email
An Outlook Email represents an email message in Microsoft Graph.
id
The unique identifier for the email.
optional[text]
folder_id
The unique identifier for the folder containing the email.
optional[text]
subject
The subject of the email.
optional[text]
body
The body of the email.
optional[text]
recipients
The recipients of the email.
optional[list of text]
state
The state of the email (e.g., sent, received, draft, deleted, archived, unread).
optional[text]
sent_date_time
The date and time the email was sent.
optional[datetime]
received_date_time
The date and time the email was received.
optional[datetime]
sender
The sender of the email.
optional[text]
cc_recipients
The cc recipients of the email.
optional[list of text]
bcc_recipients
The bcc recipients of the email.
optional[list of text]
user_id
The id of the authenticated user making the requests. If it is None, the user is the using the "me" endpoints meaning delegated access.
optional[text]
has_attachments
Whether the email has attachments or not.
optional[boolean]
Outlook attachment
An Outlook Attachment represents a file or item attached to a calendar event in Microsoft Graph. It includes the attachment name and content type.
attachment_id
The unique identifier for the attachment.
optional[text]
odata_type
The OData type of the attachment.
optional[text]
user_id
The user ID of the attachment.
optional[text]
name
The name of the attachment.
optional[text]
event_id
The ID of the event to which the attachment is attached.
optional[text]
email_id
The ID of the email to which the attachment is attached.
optional[text]
Outlook email folder
OutlookEmailFolder represents a folder within an Outlook mailbox, providing a way to organize and manage emails. It serves as a utility to group emails based on specific criteria, facilitating efficient email management and retrieval.
id
The unique identifier for the folder.
optional[text]
name
The name of the folder.
optional[text]
user_id
The id of the authenticated user making the requests.
optional[text]
Office user
An Office User represents a user in the Microsoft Graph. It includes key user details such as display name,email address, and job title.
id
The unique identifier for the user.
text
display_name
The name displayed in the address book for the user.
optional[text]
email_address
The user's email address (usually their user principal name).
optional[text]
job_title
The user's job title.
optional[text]
Outlook event
An Outlook Calendar Event is a scheduled occurrence within an Outlook calendar that is managed through theMicrosoft Graph API. The event object includes essential details such as the subject, start and end times, attendees, and location, and supports advanced features like reminders, recurrence patterns, and time zone adjustments.
id
The unique identifier for the event. Read-only.
text
subject
The text of the event's subject line.
optional[text]
body_preview
The preview of the message associated with the event. It is in text format.
optional[text]
start
The start date, time, and time zone of the event. By default, the start time is in UTC.
optional[datetime]
end
The date, time, and time zone that the event ends. By default, the end time is in UTC.
optional[datetime]
The locations where the event is held or attended from. The location and locations properties always correspond with each other. If you update the location property, any prior locations in the locations collection would be removed and replaced by the new location value.
optional[list of outlook event location]
Outlook event location
An Outlook Event Location represents a specific location associated with a calendar event or meeting inMicrosoft Graph. It includes properties like the display name, address, coordinates, and location type, enabling precise identification and use of locations within calendar-related functionalities.
display_name
The name associated with the location.
optional[text]
email_address
Optional email address of the location.
optional[text]
type
The type of location. The possible values are: default, conferenceRoom, homeAddress, businessAddress,geoCoordinates, streetAddress, hotel, restaurant, localBusiness, postalAddress. Read-only.
optional[text]
uri
Optional URI representing the location.
optional[text]
Outlook email address
Represents an email address associated with a contact or calendar item inMicrosoft Graph. It includes only the name and email address fields.
name
The display name associated with the email address.
optional[text]
address
The email address.
optional[text]
Outlook event attendee
An Outlook Event Attendee represents an attendee of a calendar event in Microsoft Graph. It includes the name, email address, attendee type, and response status fields.
name
The display name associated with the attendee.
optional[text]
email_address
The email address of the attendee.
optional[text]
type
The type of attendee as a string. Possible values are: required, optional, resource.
optional[text]
status
The response status of the attendee as a string. Possible values are: accepted, declined, tentative, etc.
optional[text]
response_time
The datetime when the response was recorded.
optional[datetime]
Office group
An Office Group represents a group in the Microsoft Graph. It includes key user details such as display name,and email address.
id
The unique identifier for the group.
text
display_name
The name displayed in the address book for the group.
optional[text]
email_address
The group's email address.
optional[text]
Last updated
Was this helpful?

