â— Learn how to work with the Apex language
â— Learn how to develop Apex Triggers
â— Learn how to use SOQL and SOSL to retrieve data
â— Learn how to write Object-Oriented Salesforce code
â— Explore the best practices to deliver scalable and maintainable code
This book covers the fundamentals of the Salesforce Apex programming language used by developers to build powerful applications in the cloud.
In this book, you will learn how to work with the Apex language to build scalable applications that can interact with and update data from your users. We cover the language from the ground up, introducing programming concepts such as variables and control statements alongside clear and concise examples to help you understand the key concepts and features. Platform-specific features such as Apex triggers, SOQL and SOSL are covered in detail to help ensure you deliver robust and scalable solutions. Nuances and best practices for development are discussed along with how to effectively test your code to ensure that you can deploy it to users with confidence. Object-oriented programming in Apex is also covered in-depth to ensure that you can develop dynamic solutions and build for the future. The book also discusses and shows developers how to integrate with third-party solutions using REST APIs in Apex.
By the end of the book, the reader will know how to start developing applications using Apex with confidence.
What will you learn
â— Learn how to declare variables in Apex.
â— Understand how to work with collections in Apex.
â— Use different control statements within Apex to control program flow.
â— Learn how to use the built-in tools to test in Apex.
â— Understand how to make callouts to external applications and data sources.
Who this book is for
This book is intended for those starting out with Apex, whether existing Salesforce Admins or those joining the Salesforce ecosystem with little professional prior programming experience, such as students. The reader is expected to have some basic familiarity with Salesforce as a platform, although key concepts are reviewed.
Table of Contents
1. An Introduction to the Salesforce Platform
2. What is Apex?
3. Variables in Apex
5. Control Statements
6. Apex Triggers
9. Defining Apex Classes
10. Apex Class Inheritance
11. Testing Apex
12. Callouts in Apex
About the Author
Paul Battisson is a 7x Salesforce MVP, holds numerous Salesforce certifications, is a Salesforce Certified Instructor and co-leader of the Leeds Salesforce Developer Group. He runs the CloudBites.TV website and YouTube channel, which has over 108k views of free training content for Salesforce admins, developers and architects. He is the COO of Cloud Galacticos, a UK based Salesforce consulting partner.