web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Dexterity Mail_xxx Functions with GP 18.4 and Email with MFA

(0) ShareShare
ReportReport
Posted on by 20

Do the functions in the Mail function library for Dexterity, e.g. Mail_AddressListCreate() and Mail_SendDialog() work with Exchange Web Services (EWS) when Multi-Factor Authentication (MFA) is enabled?

We have been using these Mail_xxx functions successfully for years with EWS (else, for MAPI we use the MAPI_xxx functions), but now when using Exchange with MFA enabled we are getting an Exchange login prompt that we cannot get past when trying to use the Mail_xxx functions.

We ARE able to successfully check for MFA and login as needed with syEmailObj_IsMSGraphEnabled(), syEmailObj_IsMSGraphSingedIn() and syEmailObj_MSGraphEmail_Logon(), and we can also successfully use syEmailObj_MSGraphEmail_SendEmail() to send out emails as well.

But we are specifically looking to continue to support the functionality in the Mail_SendDialog() function which opens the Compose window that allows a message to be composed and sent by the user.

Thank you in advance for any help with this.

Categories:
  • Verified answer
    David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    14,157 Most Valuable Professional on at

    Hi Mickie 

    My understanding is that the old functions will not work when MFA is needed.

    The MFA functionality was implemented in Dynamics and the Dexterity functions were not updated.

    Regards

    David 

  • Mickie Stamm Profile Picture
    20 on at

    Hi David -

    Thank you for your reply and hope you are doing well!

    100% spot on there - and on further digging, we see it documented here as well:

    learn.microsoft.com/.../email-troubleshooting-guide

    Specifically, this section: "When you have modern authentication enabled and you try to use the "SEND TO" option in Microsoft Dynamics GP, it will still prompt for the Exchange login. Modern authentication is not enabled off the "SEND TO" button/option. An alternative workaround to this is use the Report Option Windows as modern authentication is enabled there. For example if you are printing a Trial Balance, go to Reports | Financial Trial Balance and create a report option from this window for the report to email and modern authentication is enabled in all Report Option windows. Many customers use this for posting reports too so it will be a process change to use the Report Options window where modern authentication is now enabled VS the "SEND TO" option."

    Thanks again,

       - Mickie

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 555 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 484 Super User 2026 Season 2

#3
CU10121822-0 Profile Picture

CU10121822-0 378

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans