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

Apex triggers

Next, to the Apex class. We use the Apex language also to create complex logic during an event. Imagine a user creates a new actor and wants to verify the actor details with an external database. You can translate this user action as the following event—after inserting an actor, make a callout to a database and add the details of the actor (such as their birthday, male/female, the color of their eyes, and so on). This means that you need to perform an action after the insertion of a record. That's what we call a trigger.

A Salesforce trigger is only executed before or after a DML operation. Yes, it can be before and after. You will learn that in The order of execution of a DML statement section. When a user inserts a new record, Salesforce will verify whether the record is compliant to all your required fields, validation rules, Apex triggers, workflow...