community postIntegration & APIscommunity - not Microsoftreviewed - checked by Opus

Graph API Email account types for D365 BC

An open source extension enables Business Central guest users to send email from their home domain addresses using Microsoft Graph API and Client Credentials authentication. The solution supports multi-tenant environments where users from different Entra tenancies need automatic email routing without per-user configuration.

post Wingate365

Andy Wingate · 2026-06-07 · 717 words · about 3 min

Key points

  • Switched from OAuth delegated flow requiring user consent to Client Credentials app-only authentication eliminating per-user setup
  • Admin configures one App Registration per home domain in Business Central, with automatic user matching at send time
  • Supports both user mailboxes and shared mailboxes with full token security hardening using SecretText and encrypted storage
  • Ideal for multi-tenant organizations where internal users and B2B guests need transparent email delivery from their respective domains

AL objects mentioned

As named in the post. A name that matches one object page by exact type and name links to it; the others stay as named.

  • other “Current User (Microsoft Graph)”
  • other “App Registrations page”
  • other “Email Accounts page”

Heads up

  • gotcha: “AI-assisted development is genuinely fast for AL extension work, but it absolutely requires someone who understands the platform to review what’s being generated.”

Context

  • Features: Client Credentials OAuth authentication, Multi-tenancy support, User and shared mailbox support, CC, BCC and attachments, Token security hardening, Automatic domain matching, Graph API sendMail integration

Source: Wingate365, community blog. Summary, key points and quotes are derived (CONTENT-NOTICE.md); read the original for the full text.