Apex How to Get a List of Fields Set on an sObject
I recently had a requirement to dynamically determine what fields had been set or queried on a sObject, so that a comparison could be done on what was actually stored in Salesforce’s Datastore. Surprisingly, there’s no way method on the sObject that let’s you tell what’s actually been queried or set. So without further ado,…