Introduction
This article will guide you through connecting Microsoft Access to Outlook Mail (Office 365) using the ZappySys ODBC API Driver. By leveraging the ZappySys SSIS Outlook Mail Connector, you can effortlessly manage, analyze, and integrate your Outlook Mail data directly within Microsoft Access and other applications. Whether you want to automate data retrieval or enhance your email analytics, this guide will provide step-by-step instructions for a smooth and secure connection.
Prerequisites
-
ODBC PowerPack: Download and install the ZappySys ODBC PowerPack from the Customer Download Area or the trial version.
-
Microsoft Azure Account: Ensure you can access the Azure Portal to create the necessary application.
Steps
Create an Application in Microsoft Azure
- Log into the Azure Portal and navigate to Azure Active Directory.
- Click on App registrations in the left menu.
- Select New registration and provide a name for your application.
- Choose the supported account type and specify the Redirect URI as
https://login.microsoftonline.com/common/oauth2/nativeclient
. - Copy the Application (client) ID, Tenant ID, and Secret ID from your App configuration.
Create a New Driver
- Open the ODBC Data Source by typing “ODBC” in the search box and launching the ODBC Data Source.
- To gain access for yourself or other users, go to the User DSN or System DSN. Go to the System tab for SQL Server Integration and add a new System DSN. Click the “Add” button.
- From the driver list, select ZappySys API Driver, then choose Outlook Mail (Office 365) from the connector list and press Continue.
Outlook Mail (Office 365) Connector Configuration
- Fill in the connector fields with the Client ID, Client Secret, the necessary scopes, and the appropriate Authorization and Token URLs. Then generate the token:
- Authorization URL:
https://login.microsoftonline.com/daed1250-xxxx-xxxx-xxxx-ef0a982d3d1e/oauth2/v2.0/authorize
- Authorization URL (Without Tenant ID):
https://login.microsoftonline.com/common/oauth2/v2.0/authorize
- Token URL:
https://login.microsoftonline.com/daed1250-xxxx-xxxx-xxxx-ef0a982d3d1e/oauth2/v2.0/token
- Token URL (Without Tenant ID):
https://login.microsoftonline.com/common/oauth2/v2.0/token
- Authorization URL:
- Go to the Preview Tab, select a table, and click Preview Data to view the results. Click OK to save the configuration.
Read Data in Microsoft Access
-
Open MS Access and create a new database.
-
Under External Data, create a New Data Source, select Other Sources, and then select ODBC Database.
-
Choose the option Import the source data into a new table in the current database.
-
Navigate to the Machine Data Source, select the data source you created earlier, and click OK.
-
Proceed with selecting tables and views. You can import multiple tables or views.
-
Wait for the data to load. Once complete, you should see a similar view:
Using Linked Tables for Live Data (Slower Performance)
Linked tables in Microsoft Access are essential for online databases as they allow real-time access to centralized data, support scalability, enable collaboration, enhance security, and simplify maintenance tasks. They offer a flexible and efficient way to work with data stored in online databases, promoting cross-platform compatibility and minimizing data duplication.
-
Create a new database. Then, under External Data, create a New Data Source, select Other Sources, and then select ODBC Database. This time, choose the option Link to Data Source by creating a linked table.
-
Navigate to the Machine Data Source, select the data source you created earlier, and click OK.
-
Proceed with selecting tables and views. You can link multiple tables or views.
-
When prompted to select the Unique Key column, DO NOT select any column(s) and click OK.
-
Double-click the newly created Linked Table to load the data.
Considerations
Save your authentication details to avoid needing to retrieve them each time you connect.
Video Tutorial
Conclusion
Following these steps, you can easily connect MS Access to Outlook Mail (Office 365) using the ZappySys ODBC API Driver, streamlining the data integration and retrieval process. This powerful tool simplifies the management of your Outlook data, enabling enhanced analysis and reporting. If you encounter any issues or require further assistance, our support team is available via chat on our website.
References
For more detailed information, refer to our ZappySys Outlook Mail (Office 365) Connector.