Master Salesforce Development.
From Apex and Lightning Web Components to Flows, triggers and real interview prep — everything you need to grow as a Salesforce developer.
Explore by Topic
Jump straight into the area you’re working on.
Apex
Guides, triggers and practical code patterns.
Explore →Lightning Web Components
Reusable, copy-ready components.
Explore →Triggers
20+ real trigger scenarios.
Explore →Flows
Practical Salesforce Flow patterns.
Explore →Patterns
Reusable dev patterns for common problems.
Explore →Interview Questions
59+ real company interview experiences.
Explore →Latest Salesforce Articles
112+ articles and counting.
Trigger: On Insert Contact check if linked Account is already associated to other Contact. Throw Error.
Scenario:While inserting Contact check if linked Account is already associated to other Contact. Throw Error is
Trigger: Prevent Contact being Created/Updated with duplicate Email
Scenario: Write Trigger on Contact to prevent inserting or updating duplicate Contacts. Use Email field to compare
Trigger : Not allow to add Guest if Meeting Status is ‘Completed’.
Scenario: We have two custom object Meeting, Guest on Meeting we have field Status (Scheduled, In-Progress, Completed).
Trigger : Find all Account related Contacts when an Account is Updated.
Scenario: Write trigger syntax to find all Account related Contacts when an Account is Updated. AccountTrigger
Trigger: When Opportunity get Closed Send Email to Opportunity Owner
Scenario: When Opportunity get Closed Won send Email to Opportunity Owner. OpportunityTrigger trigger OpportunityTrigger on Opportunity
Bulk Insert Accounts, add 5 Contacts to Each Account and 2 Opportunity for each Contact
Code Snippet to Insert Bulk Accounts, add 5 Contacts to Each Account, and 2 Opportunity for
Insert Bulk Accounts and 5 Contacts to Each Account
Code Snippet to Bulk Insert Accounts and 5 Contacts to Each Account. Execute the below script
Trigger: Prevent Account from Deleting if it has Opportunities associated to it.
Example: Write a trigger logic to prevent Account from Deleting if it has Opportunities associated to it.
Trigger: Delete all Upcoming Task from Account
Example: Write a trigger logic such as if Account Rating change from Hot to any then delete