Winter '21 Release Highlights - Programmatic Code
Learn What’s New in Winter ‘21 Learning Objectives After completing this unit, you’ll be able to: Improve Apex testing with new SObject error methods. Develop flow screen components that work for multiple objects. Create custom property editors for Lightning web components. Enforce profile-based access for @AuraEnabled Apex classes. Make more powerful composite requests. Improve Apex Testing with New SObject Error Methods Track errors with the new SObject.hasErrors() and SObject.getErrors() methods without performing a DML operation to check the result for errors. Dynamically add errors to specific fields with new SObject.addError() overload methods. Use the hasErrors() method to know if an SObject instance contains errors. Use the getErrors() method to retrieve the list of errors for a specific SObject instance. If the SObject.addError() method has been called on an SObject instance, the SObject.hasErr...