I want to trigger an Event from Apex Trigger, but since Platform event cannot be rollbacked, is there a way to publish it only when the transaction is successfull?

1 Answer 1


Based on some sleuthing by @danielballinger I believe that becomes an option in Summer 19 (#safeharbor and all that)

PreRelease Orgs are now available if you want to check it out for yourself, or you can wait for Sandbox upgrades to start

Platform Event Publish Changes

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .