salesforce apex loop through fields of an object code example
Example: salesforce apex loop through fields of an object
Map<String,Object> fieldsMap = (Map<String,Object>) JSON.deserializeUntyped(JSON.serialize(newObject));
Map<String,Object> fieldsMap = (Map<String,Object>) JSON.deserializeUntyped(JSON.serialize(newObject));