Hello Dynamics GP Community!
The support team has been tracking some reports of customers running into issues e-mailing after performing an upgrade to the Fall 2022 release of Dynamics GP (18.5.xxxx). If you've just upgraded to Dynamics GP 18.5 and you're seeing that either you can no longer authenticate or send e-mail you may be running in a scenario where your App Registration in Azure AD needs to be upgraded.
What we are finding is that a change in either Dynamics GP or Azure AD is requiring additional rights under API Permissions in your App Registration in the Azure Portal. When setting up the App Registration we've always directed you to add the Mail.Send delegated MSGraph permission. Well, when a global administrator first authenticates from the Company E-mail Settings window in Dynamics GP 18.5, including granting the requested permissions it will now automatically assign an additional MSGraph permission called Mail.ReadWrite under the "Other permissions granted for %domain%" section of that window:
So, what can you do to address this should you run into any issues? Here's what we would recommend:
- First, log into Dynamics GP and navigate to Tools > Setup > Company > E-mail Settings.
- Copy out your Application (Client) ID value
- Clear the Application (Client) ID field
- Click OK to save the change
- Now close and re-open Dynamics GP
- Re-open the Company E-mail Settings window
- Re-enter the Application (Client) ID value
- Tab off that field or click OK to receive the Sign In window
- Log in as a global administrator or another user who will have rights to update Azure AD
- You should then see the "Permission Requested" prompt. Mark the "Consent on behalf of your organization" and click Accept. This is what adds the Mail.ReadWrite API Permission
You can then test emailing from Dynamics GP and you should see better results. Since this new permission is added automatically during initial authentication and it doesn't exist under "Configured Permissions" we're not going to be changing how the App Registration should be initially setup at this time.
As always, let us know if you have any questions or issues around this.
*This post is locked for comments