Skip to main content



No record found.

Dynamics 365 general forum

DYN365 FO VendEditInvoice PostInvoice fails after Post Event Handler

Posted on by 105

It is my understanding that the post event handler will work in case you what to do something after the event, right? I have implemented other post event handlers in the past and if the event fails it did no hit the post event handler, which is what I would expect, except that in the VendEditInvoice Post postInvoice Event Handler it does not happen this way.

I want to update the status of a record in my table only if the invoice is posted, so I program this in the Post postInvoice Event Handler. As I debug, I discover that the post event handler is hit and then the invoice fails to post!

Is this really the expected behavior? If so, witch event should I use to update my record status?

Thanks in advance.

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .


André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,696 Super User

Martin Dráb Profile Picture

Martin Dráb 225,490 Super User

nmaenpaa Profile Picture

nmaenpaa 101,148


Featured topics

Product updates

Dynamics 365 release plans