Advance your Apex programming skills to the next level with best practices, proven techniques, and practical code samples with this updated edition along with the most recent advancements in ApexKey FeaturesUnderstand the various integration asynchronous processing options in Apex and how to use them to scale you application
Learn how to integrate external systems with Apex through both inbound and outbound integrations
Profile and improve the performance of your Apex code
Book Description
Applications built on the Salesforce platform are now a key part of many organizations' IT systems, with more complex and integrated solutions being delivered every day. As a Salesforce developer working with Apex, it is important to understand the range and variety of tools at your disposal, how and when to use them, and what the best practices are.
This revised second edition includes a complete restructuring and five new chapters filled with detailed content on the latest Salesforce innovations including integrating with DataWeave in Apex, and utilizing Flow and Apex together to build scalable applications with Administrators.
This Salesforce book starts with a discussion around common mistakes, debugging, exception handling, and testing. The second section focuses on the different asynchronous Apex programming options to help you build more scalable applications, before the third section focuses on integrations, including working with platform events and developing custom Apex REST web services. Finally, the book finishes with a section dedicated to profiling and improving the performance of your Apex including architecture. With code examples used to facilitate discussion throughout, by the end of the book you will be able to develop robust and scalable applications in Apex with confidence.What you will learnUnderstand common Apex mistakes and how to avoid them through best practices
Learn how to debug Apex code effectively
Discover the different asynchronous Apex options, common use cases, and best practices
Extend the capabilities of the Salesforce platform with the power of integrations
Parse and manipulate data easily with the use of DataWeave functions
Develop custom Apex REST services to allow inbound integrations
Profile and improve the performance of your Apex code
Who this book is for
Developers who have basic to intermediate Apex programming knowledge and are interested in mastering Apex programming while exploring the Salesforce.com platform. This book is also ideal for experienced Java or C# developers who are moving to Apex programming for developing apps on the Salesforce platform. Basic Apex programming knowledge is assumed.Table of ContentsCommon Apex Mistakes
Debugging Apex
Triggers and Managing Trigger Execution
Exceptions and Exception Handling
Testing Apex Code
Secure Apex Programming
Utilizing Future Methods
Working with Batch Apex
Working with Queueable Apex
Scheduling Apex Jobs
Integrating with Salesforce
Using Platform Events
Apex and Flow
Apex REST and Custom Web Services
Outbound Integrations - REST
Outbound Integrations - SOAP
DataWeave in Apex
Performance and the Salesforce Governor Limits
Performance Profiling
Improving Apex Performance
Performance and Application Architectures