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

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

Email integration via Azure Graph not working

(1) ShareShare
ReportReport
Posted on by 21
TL;DR My organization is running on-prem Dynamics GP 2018 and is trying to send out automated remittance emails when processing batches. I was able to get this to work several months ago, but after updating our instance of GP to 18.6, the integration no longer works. After the user logs into the MFA app, no mail gets sent.
 
The integration is set up to use an app registration in Azure AD/Entra to let the user's account access Exchange using MFA. This app uses Graph to access the user's mailbox and send mail. GP connects to this app after I enter the app I.D. into the /Company E-mail Setup/ window, then log into Entra with my admin account.
 
When a batch is processed and GP tries to send email, the user is prompted to log into the cloud. Since the user is already logged into a virtual desktop using an Azure-linked account, they usually just click their username to progress:
After this, the email should go out. However, it never does. It's not a mail delivery issue, since it's not even leaving the user's mailbox. It's not Azure either, since there's no error after logging into the user account.
 
These are the guides I consulted when setting it up in June of last year:
 
I have attempted the following while troubleshooting this issue:
If anyone has any ideas, I'm all ears. I'm not sure what else to try.
I have the same question (0)
  • Elizabeth Hodge Profile Picture
    162 on at
    I'm having the same problem...
  • Talon Meyer Profile Picture
    91 on at
    Which build of 18.6 are you using?
     
    Have you confirmed the Word template for Remittance notices is still being built? There was a known issue with 18.6 where the upgrade routines corrupted some Word templates stored in the database: https://community.dynamics.com/forums/thread/details/?threadid=4fd1611a-edab-ee11-be37-00224827e905
     
    If the Word template was corrupted, it would stop your remittance email from going out too. 
     
    After attempting to send out remittance emails, check the temp folder of the machine to see if the template was generated or not. 
  • LD-28051634-0 Profile Picture
    21 on at
    Hello, thank you for your suggestion! Unfortunately, we never had these fields configured in our Word template. Below are the values post-update vs pre-update:
     
    I will check the temp folder on the machine to see if the template is being generated correctly. I will provide an update on Thursday 2/29.
  • LD-28051634-0 Profile Picture
    21 on at
    @Talon Mayer
    The user processed the batch again today. Again, the emails were not sent out. I checked the temp folders on the user's machine and did not see the Word template anywhere. I looked in C:\%USERPROFILE%\AppData\Local\Temp and C:\Temp.
     
    I assumed the template would be a Word document. Is this not correct? Could it be a DAT file?
     
  • Talon Meyer Profile Picture
    91 on at
    The file type is based on the file type selected for that vendor, usually .docx but .pdf and .xps are also options in that setup screen. I have seen GP create the documents in a subfolder below the TEMP directory, usually typing %TEMP% into the Windows Explorer address bar will get you to the same folder that GP is using. Here's a variety of next steps I would consider: 
    • Double check the %TEMP% folder for docx, pdf, or xps files after the user generates the remittance 
    • Can you "Print Remittance" instead of emailing? If it won't print the Word document to screen, it will not be able to email either 
    Payables Management in Dynamics GP - Dynamics GP | Microsoft Learn
    • Watch the "Templates Processing" bar at the bottom of GP to see if the files are generating successfully (or even trying to generate when emailing)
    The Dynamics GP Blogster
    • Is this specific vendor configured for EFT Remittance Emails?
    Dynamics GP Email Troubleshooting Guide - Dynamics GP | Microsoft Learn
     
  • LD-28051634-0 Profile Picture
    21 on at
    Thanks Talon. I do not think any templates are being generated. While there are Word docs and PDFs in %TEMP%, none of them are remittance templates. I truly don't think the templates are being generated. I've also verified that when processing all batches, the "Remittance Form" option is checked. I've also verified all vendors are configured to use EFT remittance.
     
    I'm trying to research why these templates aren't being generated, but I haven't found anything yet. I'll keep trying and provide an update if I find anything.
  • LD-28051634-0 Profile Picture
    21 on at
    Apologies for the lack of updates - this ticket was taken from me and I just got it reassigned. The Word template is not being generated, however, a report is printed at the end of the process. I'm not sure if it's the same as a remittance report.
  • LD-28051634-0 Profile Picture
    21 on at
    Was fixed a couple weeks ago. According to the tech I spoke to, GP UI settings can sometimes get out of sync with the backend. We ended up wiping out email integration settings in the Company E-mail setup window (Microsoft Dynamics GP > Tools > Setup > Company > E-mail Settings), then repopulating them, and following this guide with the tech, but I think the real fix was removing our corrupted "send replies to" fields.
     
    These fields were under Microsoft Dynamics GP > Tools > Setup > Company > E-mail Message Setup and Microsoft Dynamics GP > Tools > Setup > Company > E-mail Settings > Purchasing Series.
     
    Once we deleted these fields, the remittance emails started being sent.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 544 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 450 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 250 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans