Improve Apex Testing with New SObject Error Methods

Basically this Winter 21 update for improve test class error methods. Salesforce introduce two new methods SObject.hasErrors() and SObject.getErrors(). With this methods we can track errors without performing a DML operation to check the result for errors. Dynamically add errors to specific fields with new SObject.addError() overload methods. There are really three new sObject methods to keep […]

Apex Hours

Apex Hours is one stop platform to learn Salesforce skills and technology

Join our Newsletter and get tips and tricks how to explore the salesforce for free!