EWS API deprecation in Exchange Online - Microsoft has announced the end of life of the Exchange Web Services (EWS) API that is used to connect to Exchange Online. Microsoft continues to deprecate the least-used EWS APIs. This change affects bots that use the EWS API to automate email.

Automation 360

Microsoft has announced the end of life of the Exchange Web Services (EWS) API that is used to connect to Exchange Online. Microsoft continues to deprecate the least-used EWS APIs. This change affects bots that use the EWS API to automate email.

For more information about EWS API deprecation, see Deprecation of Exchange Web Services in Exchange Online.

We released the Microsoft 365 Outlook package with Automation 360 v.29. The package is based on the latest version of the Microsoft Graph API and enhances the capabilities of the Microsoft 365 package suite. For more information, see Microsoft 365 Outlook package.

We recommend that you replace the actions in the Email package that use the EWS option with the actions in the Microsoft 365 Outlook package. This replacement keeps your existing bots supported after Microsoft deprecates the EWS API.

The Microsoft 365 Outlook package automates Outlook emails for Exchange Online and contains all actions similar to those in the Email package. Use it instead of the Email package with the EWS option to change from the EWS API to the Microsoft Graph API. For instructions, see EWS API deprecation FAQ.

Update bots using Email EWS option to Microsoft 365 Outlook package

Figure 1. EWS API replacement workflow
Workflow for replacing EWS API actions with Microsoft 365 Outlook package actions

You must update bots that use the EWS API in the actions of the Email package or the Email trigger before Microsoft deprecates the EWS API.

Note: Update the Bot Agent version to 21.250 (which was released with Automation 360 v.29) on your device.
To update the bots, complete the following steps:
  1. Run the Bot Scanner to scan bots that contain Email package actions with the EWS option. See Scan bots for Basic authentication.
  2. Edit each affected bot and replace every Email package action that uses the EWS option with the equivalent action in the Microsoft 365 Outlook package. See Microsoft 365 Outlook package.
  3. Test the bot and verify that the result is the same as before the update.