Salesforce Apex Trigger & Test Class: Hands-On Scenarios
Kịch bản thực hành: Apex Trigger & Test Class trong Salesforce
Bạn sẽ học được gì
Yêu cầu
Đối tượng phù hợp
Nội dung khóa học
Giới thiệu khóa học
This course is designed for Salesforce developers who want to learn about Apex Triggers, Apex Tests, and the power of custom validation in Salesforce. Whether you are a beginner or have some experience, this course will give you a solid foundation in Apex Triggers and help you become an expert.
You will learn how to create Apex Triggers, understand context variables, and master the difference between Before and After events such as Before Insert, Before Update, and Before Delete. You will also learn about the order of execution and how to prevent recursion in your triggers.
The course also covers Apex Tests and how to write positive and negative test cases in a test class. You will learn about sObjects and how to create a test class for your triggers. The course includes scenarios, such as creating related contacts, updating related opportunities, and applying custom validation on opportunity records.
We will cover many industry ready practicals, such as:
Populating the rating as "Hot" on account creation if the industry is Media or Energy
Populating the description on opportunity creation based on the amount value
Copying the billing address to the shipping address on account creation
Creating a related contact on account insertion
Creating a related opportunity on account insertion
Populating the latest case number on account on case creation
Populating the latest opportunity amount on account on opportunity creation
Creating a contact or opportunity based on the user's choice when an account is created
Updating the description on account when the phone field is updated
Copying the billing address to the shipping address on account insert or update
Updating the related contacts on account update using a map or parent-child SOQL
Creating a task on opportunity when the stage is updated
Updating the related opportunity when an account is updated
Applying custom validation in Apex Trigger and using try & catch in the test class
Applying custom labels in Apex Trigger and test class
Preventing the update of accounts created 7 days ago from today
Applying custom validation on opportunity record creation
Applying custom validation while updating an opportunity record
By the end of this course, you will have a strong understanding of Apex Triggers and Apex Tests and be able to apply custom validation in Salesforce. Sign up now and take the first step towards becoming a Salesforce trigger expert!
Khóa học liên quan
Khám phá thêm các khoá học cùng chủ đề
Khóa học Chuyên sâu Salesforce Platform Developer: Apex & Lightning
Sanjay Gupta | 10x Salesforce Certified
Lập trình Salesforce cho Lập trình viên Trung cấp
Deepika Khanna
Khóa Đào Tạo Chuyên Sâu Lập Trình Salesforce Cho Người Mới Bắt Đầu
Shrey Sharma
Khóa Học Lập Trình Salesforce Chuyên Sâu: Từ Cơ Bản Đến Nâng Cao
Dhirender Rawat
Khóa Học Phát Triển Salesforce Toàn Diện - Cập Nhật 2024
Manish Choudhari
Lộ trình từ Zero đến Hero với Lightning Web Components
Salesforce troop
Khóa đào tạo Lập trình Salesforce cho Người mới bắt đầu
Deepika Khanna
Salesforce Certified Platform Developer I (LWC & AURA cũng có)
Deepika Khanna
Khóa học luyện thi chứng chỉ Salesforce Platform App Builder toàn diện
Rapid Reskill by Mike Wheeler
Lộ Trình Thực Hành Lightning Web Component Toàn Diện
Manish Choudhari
Học Salesforce (Admin + Developer) qua Dự Án Thực Tế với LWC
Parag Jambhulkar
Khóa học đầy đủ cho chứng chỉ Salesforce Platform Developer I
Walid El Horr
Kiểm thử Salesforce - Từ Cơ bản đến Nâng cao - Winter'26
Saravanan Ramaswamy