Maps of Populated SObject Fields Return Correct Values

The SObject.getPopulatedFieldsAsMap() method returns a map of populated field names and their corresponding values. The map contains only the fields that have been populated in memory for the SObject instance. Previously, the method didn’t return fields that were added to an SObject after it had been retrieved via a SOQL query. This bug has been fixed, and the method returns the correct fields.