A cloud-based service included in Microsoft 365, delivering scalable messaging and collaboration features with simplified management and automatic updates.
A likely cause is Basic authentication being disabled in Exchange Online after October 1, 2022. For Dynamics 365 server-side synchronization, this can cause email, appointments, contacts, and tasks to stop syncing and return 401 Unauthorized errors.
Check these items first:
- In Dynamics 365, verify the mailbox email address matches the Exchange mailbox address exactly.
- Open the mailbox record from the sync error.
- Confirm the Email Address field matches the address in Exchange.
- Check whether server-side synchronization is still configured correctly for affected mailboxes.
- Mailboxes must be configured for:
- incoming email
- outgoing email
- appointments, contacts, and tasks
- Mailboxes must also be Approved and Tested and enabled.
- Mailboxes must be configured for:
- Open the mailbox settings in Dynamics 365 and verify the server profile.
- Go to Settings > Personalization Settings.
- Select the Email tab.
- Select View your Mailbox.
- Under Synchronization Method, make sure Server Profile has a value. If not, select Microsoft Exchange Online.
- If Activate is available in the ribbon, select it.
- Check Alerts in the left pane for server-side synchronization errors.
- If the failure started in early October and the errors show
401 Unauthorized, review whether the CRM integration depends on Basic authentication.- This timing matches the documented Exchange Online Basic authentication change.
- If so, follow the guidance for temporary Basic authentication enablement referenced in the Dynamics 365 troubleshooting article, then move the integration to a supported authentication method.
- If the CRM uses an Exchange Online (Hybrid) email server profile, run Test Connection on that profile and use the results to diagnose the connection.
If the issue is limited to saving Outlook activities through Sales agent, server-side synchronization is a prerequisite. In that case, enabling and validating server-side synchronization for the mailbox is required before email and calendar items can be saved successfully.