Facebook

Summer 19 – API 46

Change Data Capture Support in Apex

It is possible to subscribe to field changes in objects via platform events. The changes appear as a trigger in Apex that fires asynchronously. This opens the possibility of new “trigger” handling design patterns. The primary advantage is the ability to easily move resource intensive operations into an asynchronous context.

This is still a very new feature, so best practices, limit issues, and other “gotchas” have yet to be determined. But it’s something to be aware of for new development.

Fire Platform Events from Batch Apex

It is now possible to have a platform event automatically fire when an error or exception occurs during a batch Apex execution. This will enable new error handling design patterns, and is something to be aware of.

See: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_batch_platformevents.htm