> ## Documentation Index
> Fetch the complete documentation index at: https://domoinc-bradley-turek-pfilter-operators-reference.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Microsoft Exchange Mailbox Connector

## Intro

Microsoft Exchange Server is a mail server and calendaring server. To learn more about the Microsoft Exchange API, visit their page ([https://docs.microsoft.com/en-us/exc...s-and-contacts](https://docs.microsoft.com/en-us/exchange/client-developer/exchange-web-services/office-365-rest-apis-for-mail-calendars-and-contacts)).

You connect to your Microsoft Exchange account in the Data Center. This topic discusses the fields and menus that are specific to the Microsoft Exchange connector user interface. General information for adding DataSets, setting update schedules, and editing DataSet information is discussed in [Adding a DataSet Using a Data Connector](/s/article/360042926274).

<Warning>**Important:** Microsoft has deprecated the use of Basic Authentication for Exchange Web Services:[Basic Authentication Deprecation in Exchange Online – September 2022 Update - Microsoft Community Hub.](https://techcommunity.microsoft.com/t5/exchange-team-blog/basic-authentication-deprecation-in-exchange-online-september/ba-p/3609437)\
Customers should only use the MSExchange connector if they are trying to connect to their on-premise Microsoft Exchange server that supports Basic Authentication.</Warning>

## Prerequisites

To connect to your Microsoft Exchange Mailbox mailbox and create a DataSet, you must have a Microsoft Exchange Client ID and Client Secret. For information about obtaining these credentials, see [https://docs.microsoft.com/en-us/outlook/rest/get-started](https://docs.microsoft.com/en-us/outlook/rest/get-started). You must also have your Microsoft credentials (the email address, phone number, or Skype handle associated with your account, as well as your password).

## Connecting to Your Microsoft Exchange Account

This section enumerates the options in the **Credentials** and **Details** panes in the Microsoft Exchange Connector page. The components of the other panes in this page, **Scheduling** and **Name & Describe Your DataSet**, are universal across most connector types and are discussed in greater length in [Adding a DataSet Using a Data Connector](/s/article/360042926274).

### Credentials Pane

This pane contains fields for entering credentials to connect to the Microsoft Exchange REST API. The following table describes what is needed for each field:

<table border="1" cellpadding="1" cellspacing="1">
  <thead>
    <tr>
      <th colspan="1" rowspan="1"><p>Field</p></th>
      <th colspan="1" rowspan="1"><p>Description</p></th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td colspan="1" rowspan="1"><p>Client ID</p></td>
      <td colspan="1" rowspan="1"><p>Enter your Client ID. For step-by-step instructions on obtaining a Client ID and Client Secret, see <a href="https://learn.microsoft.com/en-us/entra/identity-platform/quickstart-register-app">[https://learn.microsoft.com/en-us/entra/identity-platform/quickstart-register-app](https://learn.microsoft.com/en-us/entra/identity-platform/quickstart-register-app)</a>.</p></td>
    </tr>

    <tr>
      <td colspan="1" rowspan="1"><p>Client Secret</p></td>
      <td colspan="1" rowspan="1"><p>Enter your Client Secret. For step-by-step instructions on obtaining a Client ID and Client Secret, see <a href="https://learn.microsoft.com/en-us/entra/identity-platform/quickstart-register-app">[https://learn.microsoft.com/en-us/entra/identity-platform/quickstart-register-app](https://learn.microsoft.com/en-us/entra/identity-platform/quickstart-register-app)</a>.</p></td>
    </tr>
  </tbody>
</table>

For information, see [https://learn.microsoft.com/en-us/entra/identity-platform/quickstart-register-app](https://learn.microsoft.com/en-us/entra/identity-platform/quickstart-register-app).

After you have entered your API credentials, you are taken to the Microsoft OAuth screen where you are prompted to enter your Microsoft credentials. Once you have entered valid credentials, you can use the same account any time you go to create a new Microsoft Exchange DataSet. You can manage connector accounts in the **Accounts** tab in the Data Center. For more information about this tab, see [Managing User Accounts for Connectors](/s/article/360042926054).

### Configuring Your Azure App

To create a connection with your Microsoft Exchange Mailbox account, you must first create a Microsoft Azure Web App to obtain the necessary client ID and secret.

**To configure an Azure App**:

1. Log in to the [Azure Portal](https://portal.azure.com/#home).

2. Click **Azure Active Directory > App Registrations > New Registration**.

<Frame>
  <img src="https://mintcdn.com/domoinc-bradley-turek-pfilter-operators-reference/ynVWYEgzvqa81TPB/images/kb/0EM5w000005vO7B.png?fit=max&auto=format&n=ynVWYEgzvqa81TPB&q=85&s=c1eb80b40a29b66524b5d41c27e24790" alt="New_Registrations.png" width="266" height="173" data-path="images/kb/0EM5w000005vO7B.png" />
</Frame>

3. Fill out the registration form as follows:

* Name: Enter the name for your application.
* Supported account types: Select an option to specify who can use this application or access this API.
* Redirect URI: Enter the redirect URI as: **[https://oauth.domo.com/api/data/v1/oauth/providers/mail-exchange-rest/exchange](https://oauth.domo.com/api/data/v1/oauth/providers/mail-exchange-rest/exchange)**

<Note>**Note:** The authentication response is sent to this URI after successfully authenticating the user. Provide the URI at this stage, which can be changed later, but a value is required for most of the authentication scenarios.</Note>

<Frame>
  <img src="https://mintcdn.com/domoinc-bradley-turek-pfilter-operators-reference/vzYD8_ldKevkHHgy/images/kb/0EM5w000006v5JM.jpg?fit=max&auto=format&n=vzYD8_ldKevkHHgy&q=85&s=d9bea186b85bbe7cf1545a8474dcfadf" alt="register application" width="1944" height="1266" data-path="images/kb/0EM5w000006v5JM.jpg" />
</Frame>

4. Click **Register**. An overview of your registered App will appear. The **Application ID** that appears here is the **Client ID** you will enter in the **Credentials** pane in Domo.

5. Click **API Permissions >> +Add a permission**.

<Frame>
  <img src="https://mintcdn.com/domoinc-bradley-turek-pfilter-operators-reference/1Fw0HYwWNbz1ufEx/images/kb/0EM5w000005vO7F.png?fit=max&auto=format&n=1Fw0HYwWNbz1ufEx&q=85&s=0f9fe3bdb97b893e8ee60dc0d0cd0f3e" alt="Add_API_permission.png" width="1058" height="131" data-path="images/kb/0EM5w000005vO7F.png" />
</Frame>

6. **Request API permissions** section appears. Add the API permissions for your application.

<Frame>
  <img src="https://mintcdn.com/domoinc-bradley-turek-pfilter-operators-reference/vzYD8_ldKevkHHgy/images/kb/0EM5w000006v5JR.jpg?fit=max&auto=format&n=vzYD8_ldKevkHHgy&q=85&s=f509813eee4afde77e6235387d8a59e3" alt="api permissions.png" width="2102" height="1000" data-path="images/kb/0EM5w000006v5JR.jpg" />
</Frame>

7. Now, click on **Certificates and secrets**. Certificates can be used as secrets to prove the application's identity when requesting a token. Also, can be referred to as public keys.

8. Click **+New client secret**.

<Frame>
  <img src="https://mintcdn.com/domoinc-bradley-turek-pfilter-operators-reference/1Fw0HYwWNbz1ufEx/images/kb/0EM5w000005vO7E.png?fit=max&auto=format&n=1Fw0HYwWNbz1ufEx&q=85&s=09f85523ffb78241d7573384d0979333" alt="New_Client_secret.png" width="1059" height="180" data-path="images/kb/0EM5w000005vO7E.png" />
</Frame>

9. Specify the client secret description and the expiry period for your client secret, and click **Add**.

10. Copy the value and paste it into the **Client Secret** field in the **Connector credentials** section in Domo.

### Details Pane

This pane contains a primary **Reports** menu, along with various other menus that may or may not appear depending on the report type you select.

<table border="1" cellpadding="1" cellspacing="1">
  <thead>
    <tr>
      <th colspan="1" rowspan="1"><p>Menu</p></th>
      <th colspan="1" rowspan="1"><p>Description</p></th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td colspan="1" rowspan="1"><p>Report</p></td>
      <td colspan="1" rowspan="1"><p>Select the Microsoft Exchange report you want to run. The following reports are available:</p></td>
    </tr>

    <tr>
      <td colspan="1" rowspan="1"><p>Folder</p></td>
      <td colspan="1" rowspan="1"><p>Select the folder containing the content you want to import.</p></td>
    </tr>

    <tr>
      <td colspan="1" rowspan="1"><p>Search Type</p></td>
      <td colspan="1" rowspan="1"><p>Select whether you want to search for a specific term or apply filters to import a subset of a collection.</p></td>
    </tr>

    <tr>
      <td colspan="1" rowspan="1"><p>Filter Type</p></td>
      <td colspan="1" rowspan="1"><p>Select a filter type, either <b>Starts with</b> or <b> Equals</b>. If you select <b> Starts with</b>, all files starting with the specified characters will be returned. If you select <b> Equals</b>, only files that are an exact match will be returned.</p></td>
    </tr>

    <tr>
      <td colspan="1" rowspan="1"><p>Subject (Optional)</p></td>
      <td colspan="1" rowspan="1"><p>Enter a subject to filter to show all emails containing the given subject line.</p></td>
    </tr>

    <tr>
      <td colspan="1" rowspan="1"><p>From (Optional)</p></td>
      <td colspan="1" rowspan="1"><p>Enter the ID of a user to filter returned data specific to that user.</p></td>
    </tr>

    <tr>
      <td colspan="1" rowspan="1"><p>Search Option</p></td>
      <td colspan="1" rowspan="1"><p>Select the desired search method. If you select <b>Custom Search</b>, you are prompted to enter a subject line and sender name for the search. If you select <b> Query</b>, you are prompted to enter a search query string.</p></td>
    </tr>

    <tr>
      <td colspan="1" rowspan="1"><p>Query</p></td>
      <td colspan="1" rowspan="1"><p>Enter a Keyword Query Language (KQL) query. For more information about searchable email properties, KQL syntax, supported operators, and search tips, see the Microsoft Exchange user documentation.</p></td>
    </tr>

    <tr>
      <td colspan="1" rowspan="1"><p>Calendar Type</p></td>
      <td colspan="1" rowspan="1"><p>Select whether you want to import a shared or personal (<b>Own</b>) calendar.</p></td>
    </tr>

    <tr>
      <td colspan="1" rowspan="1"><p>Shared Calendar Search Type</p></td>
      <td colspan="1" rowspan="1"><p>Select whether you want to search for shared calendars by name or email address.</p></td>
    </tr>

    <tr>
      <td colspan="1" rowspan="1"><p>Shared Calendars</p></td>
      <td colspan="1" rowspan="1"><p>Select the shared calendar(s) you want to import into Domo.</p></td>
    </tr>

    <tr>
      <td colspan="1" rowspan="1"><p>Shared Users Email Address</p></td>
      <td colspan="1" rowspan="1"><p>Enter the email address of the user whose calendar you want to retrieve.</p></td>
    </tr>

    <tr>
      <td colspan="1" rowspan="1"><p>File Type</p></td>
      <td colspan="1" rowspan="1"><p>Select whether the attachment you are importing is a CSV, XLS, XLSX, JSON, or XML file.</p></td>
    </tr>

    <tr>
      <td colspan="1" rowspan="1"><p>File Name</p></td>
      <td colspan="1" rowspan="1"><p>Enter the name of the attachment you want to import. If the file name contains an extension, you must include the extension.</p></td>
    </tr>

    <tr>
      <td colspan="1" rowspan="1"><p>Folder Path (Optional)</p></td>
      <td colspan="1" rowspan="1"><p>Enter the path of the folder containing messages you want to search. If you do not enter a folder path, the "Inbox" folder will be searched. For example, if the root folder was "DOMO" and in that root folder you had a folder called "DOMO\_TEST," you would enter the following to return messages for "DOMO\_TEST": DOMO/DOMO\_TEST</p></td>
    </tr>

    <tr>
      <td colspan="1" rowspan="1"><p>File Password (Optional)</p></td>
      <td colspan="1" rowspan="1"><p>If the file you are uploading is password-protected, enter the password here.</p></td>
    </tr>

    <tr>
      <td colspan="1" rowspan="1"><p>Delimiter</p></td>
      <td colspan="1" rowspan="1"><p>Select the delimiter to use in parsing CSV files. If your desired delimiter is not in the menu, select <b>Other</b> then enter the delimiter in the <b> Custom Delimiter</b> field.</p></td>
    </tr>

    <tr>
      <td colspan="1" rowspan="1"><p>Custom Delimiter</p></td>
      <td colspan="1" rowspan="1"><p>Enter the custom delimiter for your CSV file. Enter \t for tab or Unicode characters in \uxxxx form (e.g. \u005e).</p></td>
    </tr>

    <tr>
      <td colspan="1" rowspan="1"><p>Quote Character</p></td>
      <td colspan="1" rowspan="1"><p>Select the desired quote character for parsing your CSV file. A double quote (") is the CSV standard.</p></td>
    </tr>

    <tr>
      <td colspan="1" rowspan="1"><p>Custom Quote Character</p></td>
      <td colspan="1" rowspan="1"><p>Enter the desired custom quote character. Enter \t for tab or Unicode characters in \uxxxx form (e.g. \u005e).</p></td>
    </tr>

    <tr>
      <td colspan="1" rowspan="1"><p>Escape Character</p></td>
      <td colspan="1" rowspan="1"><p>Select the escape character to use in parsing CSV files. If your desired escape character is not in the menu, select <b>Other</b> then enter the escape character in the <b> Custom Escape Character</b> field.</p></td>
    </tr>

    <tr>
      <td colspan="1" rowspan="1"><p>Custom Escape Character</p></td>
      <td colspan="1" rowspan="1"><p>Enter the custom escape character for your CSV file. Enter \t for tab or Unicode characters in \uxxxx form (e.g. \u005e).</p></td>
    </tr>

    <tr>
      <td colspan="1" rowspan="1"><p>Start Days</p></td>
      <td colspan="1" rowspan="1"><p>Enter the number of days back you want to begin pulling data for. For example, if you entered 7 here, each time the report ran it would pull data from 7 days ago up until today.</p></td>
    </tr>

    <tr>
      <td colspan="1" rowspan="1"><p>Header Start Row (Optional)</p></td>
      <td colspan="1" rowspan="1"><p>Enter the header row number. If you do not enter a number, the first row is considered the header row.</p></td>
    </tr>

    <tr>
      <td colspan="1" rowspan="1"><p>Data Start Row (Optional)</p></td>
      <td colspan="1" rowspan="1"><p>Enter the starting data row number. If you do not enter a number, the first row after the header row is considered the starting row.</p></td>
    </tr>

    <tr>
      <td colspan="1" rowspan="1"><p>Footer Rows to Skip (Optional)</p></td>
      <td colspan="1" rowspan="1"><p>If there are one or more rows at the bottom of the file you do not want to import, enter the number of rows to skip.</p></td>
    </tr>

    <tr>
      <td colspan="1" rowspan="1"><p>Sheet Name (Optional)</p></td>
      <td colspan="1" rowspan="1"><p>If the Excel file you are uploading is found on a specific sheet, enter the sheet name here. If you do not enter a sheet name, the first sheet of the workbook will be used.</p></td>
    </tr>

    <tr>
      <td colspan="1" rowspan="1"><p>Date Field Key</p></td>
      <td colspan="1" rowspan="1"><p>Enter the data tag in your JSON or XML file.</p></td>
    </tr>

    <tr>
      <td colspan="1" rowspan="1"><p>Sublist to Flatten</p></td>
      <td colspan="1" rowspan="1"><p>Enter the lists you want to flatten, separated by commas.</p></td>
    </tr>

    <tr>
      <td colspan="1" rowspan="1"><p>Report Date</p></td>
      <td colspan="1" rowspan="1"><p>Select whether the report data is for a specific date or for a relative number of days back from today.</p></td>
    </tr>

    <tr>
      <td colspan="1" rowspan="1"><p>Select Specific Date</p></td>
      <td colspan="1" rowspan="1"><p>Select the date for the report.</p></td>
    </tr>

    <tr>
      <td colspan="1" rowspan="1"><p>Days Back</p></td>
      <td colspan="1" rowspan="1"><p>Enter the number of past days that should appear in the report.</p></td>
    </tr>

    <tr>
      <td colspan="1" rowspan="1"><p>Start Date</p></td>
      <td colspan="1" rowspan="1"><p>Specify whether the first date in your date range is a specific or relative date. You select the last date in your range in <b>End Date</b>.</p></td>
    </tr>

    <tr>
      <td colspan="1" rowspan="1"><p>End Date</p></td>
      <td colspan="1" rowspan="1"><p>Specify whether the second date in your date range is a specific or relative date. You select the first date in your range in <b>Start Date</b>.</p></td>
    </tr>

    <tr>
      <td colspan="1" rowspan="1"><p>Select Specific Start Date</p></td>
      <td colspan="1" rowspan="1"><p>Select the first date in your date range.</p></td>
    </tr>

    <tr>
      <td colspan="1" rowspan="1"><p>Select Specific End Date</p></td>
      <td colspan="1" rowspan="1"><p>Select the second date in your date range.</p></td>
    </tr>

    <tr>
      <td colspan="1" rowspan="1"><p>Days Back to Start From</p></td>
      <td colspan="1" rowspan="1"><p>Enter the number of the farthest day back that should be represented in the report. Combine with <b>Days Back to End At</b> to create a range of represented days.  For example, if you entered 10 for <b> Days Back to Start From</b> and 5 for <b> Days Back to End At</b>, the report would contain data for 10 days ago up until 5 days ago.</p></td>
    </tr>

    <tr>
      <td colspan="1" rowspan="1"><p>Days Back to End At</p></td>
      <td colspan="1" rowspan="1"><p>Enter the number of the most recent day back that should be represented in the report. Combine with <b>Days Back to Start From</b> to create a range of represented days.  For example, if you entered 10 for <b> Days Back to Start From</b> and 5 for <b> Days Back to End At</b>, the report would contain data for 10 days ago up until 5 days ago.</p></td>
    </tr>

    <tr>
      <td colspan="1" rowspan="1"><p>Report Date</p></td>
      <td colspan="1" rowspan="1"><p>Select whether the report data is for a specific date or for a relative number of days back from today.</p></td>
    </tr>

    <tr>
      <td colspan="1" rowspan="1"><p>Select Specific Date</p></td>
      <td colspan="1" rowspan="1"><p>Select the date for the report.</p></td>
    </tr>

    <tr>
      <td colspan="1" rowspan="1"><p>Days Back</p></td>
      <td colspan="1" rowspan="1"><p>Enter the number of past days that should appear in the report.</p></td>
    </tr>

    <tr>
      <td colspan="1" rowspan="1"><p>Start Date</p></td>
      <td colspan="1" rowspan="1"><p>Specify whether the first date in your date range is a specific or relative date. You select the last date in your range in <b>End Date</b>.</p></td>
    </tr>

    <tr>
      <td colspan="1" rowspan="1"><p>End Date</p></td>
      <td colspan="1" rowspan="1"><p>Specify whether the second date in your date range is a specific or relative date. You select the first date in your range in <b>Start Date</b>.</p></td>
    </tr>

    <tr>
      <td colspan="1" rowspan="1"><p>Select Specific Start Date</p></td>
      <td colspan="1" rowspan="1"><p>Select the first date in your date range.</p></td>
    </tr>

    <tr>
      <td colspan="1" rowspan="1"><p>Select Specific End Date</p></td>
      <td colspan="1" rowspan="1"><p>Select the second date in your date range.</p></td>
    </tr>

    <tr>
      <td colspan="1" rowspan="1"><p>Days Back to Start From</p></td>
      <td colspan="1" rowspan="1"><p>Enter the number of the farthest day back that should be represented in the report. Combine with <b>Days Back to End At</b> to create a range of represented days.  For example, if you entered 10 for <b> Days Back to Start From</b> and 5 for <b> Days Back to End At</b>, the report would contain data for 10 days ago up until 5 days ago.</p></td>
    </tr>

    <tr>
      <td colspan="1" rowspan="1"><p>Days Back to End At</p></td>
      <td colspan="1" rowspan="1"><p>Enter the number of the most recent day back that should be represented in the report. Combine with <b>Days Back to Start From</b> to create a range of represented days.  For example, if you entered 10 for <b> Days Back to Start From</b> and 5 for <b> Days Back to End At</b>, the report would contain data for 10 days ago up until 5 days ago.</p></td>
    </tr>
  </tbody>
</table>

### Other Panes

For information about the remaining sections of the connector interface, including how to configure scheduling, retry, and update options, see [Adding a DataSet Using a Data Connector](/s/article/360042926274).
