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 :
Small and medium business | Business Central, N...
Unanswered

Email not sent from table event subscriber in Business Central

(1) ShareShare
ReportReport
Posted on by 74

Hi everyone,

I’m working on a Stripe integration in Dynamics 365 Business Central (Cloud) and I’m facing an issue with automatically sending emails when a payment webhook is received.

Scenario

  • Stripe sends a webhook
  • Webhook data is inserted into a custom table Webhook Buffer
  • When payment Status = 'succeeded', I want to:
  1. Generate a PDF receipt using Report.SaveAs
  2. Send email with attachment using Email / Email Message codeunits
  • Email works perfectly when:
  1. Triggered manually from a page action
  2. Triggered from a Job Queue codeunit that loops through pending records
  • Email does NOT send when triggered automatically from:
    • OnAfterInsertEvent subscriber on Webhook Buffer
    • Even when using COMMIT and Session.StartSession
  • No error is thrown and debugging is not possible (silent failure)

Question

  1. Is it by design that emails / external actions should not be executed from table event subscribers?
  2. Is Job Queue recommended pattern for this scenario?
  3. Are there any officially supported alternatives for real-time email sending after webhook inserts?

Any guidance or confirmation from others who’ve handled webhook or payment integrations would be greatly appreciated.

Thanks in advance!

I have the same question (0)

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 > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,151

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,443 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,092 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans