Skip to main content

Moving Off Exchange Web Services (EWS) to the Microsoft Graph

CEO at OnePlace Solutions, a trusted Microsoft Gold partner providing a suite of integrated products on the SharePoint/Office 365 platform.
James Fox
19 November 2019
Microsoft Graph API

Our OnePlaceMail App uses the Microsoft Graph API wherever possible and any new developments we undertake we will use the Microsoft Graph API unless there are valid reasons not to such as lack of support for certain features at present.

When we initially developed our OnePlaceMail app the only way to operate with emails at an API level was to use Exchange Web Services (EWS). We developed all email operations in our app calling EWS and this worked successfully to a point.

EWS Issues

We use Azure Application Insights to monitor our app for any issues and usage patterns on a continual basis. What we noticed was that there would be random errors accessing emails/attachments/email properties and category information for users at different times. When using the app, during the majority of sessions users experienced no issues, however, we were determined to eliminate these issues as best as possible so the experience for end-users was improved even more.

In addition, Microsoft does not see a future for EWS with no enhancements to be released. Their advice was to move to the Microsoft Graph API - read about it here.

 

Microsoft does not see a future for EWS with no enhancements to be released

 

Moving to the Microsoft Graph API

Over time, Microsoft started to extend the email capabilities of the Microsoft Graph, when we analyzed what was possible we realized we could effectively stop using EWS and move to the Microsoft Graph for all email-based operations in our app. Backing our decision to commit to the Microsoft Graph was the future direction of EWS mentioned previously. In addition, the hope was that moving to the Microsoft Graph API endpoint would help reduce the errors and random issues we were seeing in Application insights for end-users using the app.

We took the decision to move off EWS to the Microsoft Graph API and identified all calls we made to EWS and ran a project to move them to the Microsoft Graph API. This project came together really quickly and the result is that the majority of API calls in our OnePlaceMail app are now made to the Microsoft Graph API endpoints. In terms of email operations, we use the Microsoft Graph API for:

    • Saving emails and attachments to SharePoint / Teams / OneDrive:

Saving emails and attachments to SharePoint / Teams / OneDrive

Saving emails and attachments to SharePoint / Teams / OneDrive 2

SharePoint

Saving emails and attachments to SharePoint / Teams / OneDrive 3

Teams

Saving emails and attachments to SharePoint / Teams / OneDrive 4

OneDrive

  • Adding an email category to the master category list in Exchange
  • Setting an email category on an email in Exchange:

Saving emails and attachments to SharePoint / Teams / OneDrive 5

 

The Results

In the first few weeks since moving to the Microsoft Graph for email operations in the app, we have noticed a significant reduction in issues overall in our analysis of Azure Application Insights. There are fewer random errors so it looks like we made the right decision to move to the Microsoft Graph which will lead to happy customers! We will look to continue to replace all remaining calls we make in our App to different endpoints to call the Microsoft Graph API when the capabilities are fully supported.

Latest news & blogs

| Jessica Mckenzie | Blog

How organizations can cut costs and deliver on expectations when managing projects

Effective project management can mean the difference between business success and failure. It requires careful planning and execution to make sure every part of the project aligns with the overall goals. However, delivering high-quality projects within the set budget and timeframe is challenging.

| Jessica Mckenzie | Blog

How to improve email communication through OnePlaceMail’s email tracking service

Email communication is still one of the most widely used tools in business, with 86 percent of professionals preferring it over other methods, such as instant messaging (IM) platforms and voice and video conferencing tools. Projected figures anticipated that the total daily email traffic—sent and received—would grow to a staggering 347 billion by the end of 2023. However, this ubiquity introduces significant challenges, particularly in maintaining compliance and managing critical business information.

| Jessica Mckenzie | Blog

Understanding information sprawl and its hidden consequences

No matter what some businesses do, they’re always drowning in a sea of digital assets. Data creation is growing rapidly, encompassing a wide array of documents, files, data, and structured and unstructured information. While digital solutions facilitate vast data management, they also introduce risks associated with information sprawl and inefficient workflows.

Schedule a demo

See the OnePlace Solutions product suite in action and unlock the potential of your data by leveraging the SharePoint platform.

Try free

Download and try the full OnePlace Solutions product suite for Windows Desktop and Apps for Microsoft 365.

Contact us

We're here to help, so please don’t hesitate to get touch with any questions you may have.