sObjects are great for dynamic apex where you need to re-use code across objects and/or need to dynamically set data. I’ve had several projects where the same logic is used across many objects such as date, territory, and ownership. Recently had a use case where I used sObjects and a custom setting with a list of fields between two objects to dynamically load the fields and keep data synchronized. Going to clean up that example and posted it later but below is a cheat sheet I finally pulled together of common programming patterns and uses:
Apex sObject Examples
Posted on