Meta Description: Learn how to replace SMTP with Microsoft Graph API in D365FO. A step-by-step guide to Azure App Registration, API permissions (Mail.Send), and Email Parameter setup.
Introduction
With Microsoft moving towards modern authentication, the traditional SMTP setup in Dynamics 365 Finance & Operations is being phased out. Using Microsoft Graph API is now the standard for sending secure, reliable emails.
In this post, I will walk you through the technical configuration required to bridge Azure Active Directory (Entra ID) and D365FO.
Phase 1: Azure Portal Configuration
The first step is creating a secure entry point in the Azure Portal. (You must have admin rights on Azure Portal)
App Registration: Create a new registration named DemoMails. (Write your own name)
Credentials: Note down the Application (Client) ID
API Permissions: This is the most crucial part. You must add Application Permissions for
Mail.Sendunder Microsoft Graph.Crucial Step: Don't forget to click "Grant Admin Consent". Without this, your D365FO environment will return a Not Authorized error.
Phase 2: D365FO System Administration
Now, we link the Azure App to your Dynamics environment.
Navigate to Parameters: Go to
System administration > Setup > Email > Email parametersEnable Provider: Move Graph to the 'Enabled' interactive providers list.Authentication Settings: In the Microsoft Graph settings tab, input your Application ID and Client Secret.
Summary & Full Discussion
Transitioning to Microsoft Graph API not only improves security but also eliminates the common "Basic Auth" issues found in SMTP.
Original Article Link: https://www.linkedin.com/pulse/integrating-microsoft-graph-d365fo-seamless-email-faizan-arshad-ozgpf









