Enjoy unlimited access to all of Mike Wheeler's training courses and content as a Mike Wheeler Media+ subscriber. Learn on-demand and on-the-go with our state-of-the-art learning platform. Mobile apps included in your subscription as well!
Mike Wheeler has taught over 135,000 students how to use the Salesforce platform and pass a multitude of Salesforce Certification Exams.
We are now in the Extending Declarative Functionality section of this course. We get started with discussing Invocable Methods. Use the InvocableMethod annotation to identify methods that can be run as invocable actions.
Supported data types in an Apex class are Boolean, Integer, Long, Decimal, Double, Date, DateTime, and String. Single values and lists are supported for each data type. Multiple Apex classes can be combined to represent complex web objects.
Considerations for the Apex-Defined Data Type...
The TestDataFactory class is a special type of class—it is a public class that is annotated with isTest and can be accessed only from a running test. Test utility classes contain methods that can be called by test methods to perform useful tasks, such as setting up test data. Test utility classes...