Book Image

Salesforce Platform Developer I Certification Guide

By : Jan Vandevelde, Gunther Roskams
Book Image

Salesforce Platform Developer I Certification Guide

By: Jan Vandevelde, Gunther Roskams

Overview of this book

Salesforce Lightning Platform, used to build enterprise apps, is being increasingly adopted by admins, business analysts, consultants, architects, and especially developers. With this Salesforce certification, you'll be able to enhance your development skills and become a valuable member of your organization. This certification guide is designed to be completely aligned with the official exam study guide for the latest Salesforce Certified Platform Developer I release and includes updates from Spring '19. Starting with Salesforce fundamentals and performing data modeling and management, you’ll progress to automating logic and processes and working on user interfaces with Salesforce components. Finally, you'll learn how to work with testing frameworks, perform debugging, and deploy metadata, and get to grips with useful tips and tricks. Each chapter concludes with sample questions that are commonly found in the exam, and the book wraps up with mock tests to help you prepare for the DEV501 certification exam. By the end of the book, you’ll be ready to take the exam and earn your Salesforce Certified Platform Developer I certification.
Table of Contents (15 chapters)
Free Chapter
Section 1: Fundamentals, Data Modeling, and Management
Section 2: Logic, Process Automation, and the User Interface
Section 3: Testing, Debugging, and Exercise
Mock Tests

Exception handling

What happens if you update a record and the update fails because you entered the wrong data? Yes, correct—you get an error message. But behind the scenes, this is what we developers call an exception.

In Salesforce, you have two big types of exceptions:

  • Standard exceptions
  • Custom exceptions

Standard exceptions are predefined in Salesforce. If you update a record and the update fails, you'll receive a DML exception. If a callout to a web service fails, you will receive a callout exception. You can find all types of standard exceptions in an overview at

But how do we use the standard exceptions? Do you remember, in one of the first lessons of this book, the try...catch structure?

Yes, we try to execute some logic, and if the execution fails...