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?


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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.