What is Events in Lightning Web Components?

Events in lightning web components (LWC) are mechanisms used to facilitate communication between different components within a Salesforce Lightning application. Events in LWC are built on the standard DOM Events API, which is a collection of APIs and objects available in every browser. These events allow components to send messages to each other, either as […]

LWC Lifecycle Hooks

A lifecycle hook is a callback method that triggers at a specific phase of a component instance’s lifecycle. With LWC, you can use the following lifecycle hooks. constructor() connectedCallback() and disConnectedCallback() renderedCallback() errorCallback() Lifecycle Flow  Lightning web components have a lifecycle managed by the framework. The framework creates components, inserts them into the DOM, renders them, and removes them […]

How to create Custom Fields?

To create custom fields, you have to  create custom Object first. Now, you are going to build custom fields in Student objects. Father’s name DOB Phone Address Fee paid Steps to create Custom Fields Step 1: To create a field in a custom object, go to the Setup menuStep 2: Go to: Build > Create > Objects Get […]

Relate a Contact to Multiple Accounts

How to relate a Salesforce contact record to multiple accounts Nowadays, with many executives, contractors, and even employees working for multiple companies at a time, it is not uncommon to require a salesforce contact to be related to more than one parent account record. Here we will try to shed some light on how to […]

What is Salesforce Sandbox?

A Salesforce Sandbox is a duplicate of your organization’s Salesforce setup used for testing and development. It provides a separate space where developers and administrators can experiment with changes without affecting the live production environment. A Sandbox is like a virtual testing ground where businesses can try out new features, test changes, and solve problems […]

Master-Detail Relationship in Salesforce: A Step-by-Step Guide

What is a Master-Detail Relationship? A Master-Detail Relationship is a strict type of association between two objects where the child record (detail) depends on the parent record (master). If the master record is deleted, the related detail records are automatically deleted, enforcing a clear hierarchy. Key features of the Master-Detail Relationship include: Strict Parent-Child Dependency: […]

Understanding Lookup Relationships in Salesforce: A Step-by-Step Guide

What is a Lookup Relationship? A Lookup Relationship in Salesforce is a loose association between two objects, allowing you to create links between records in a way that is more flexible than a Master-Detail Relationship. In a Lookup Relationship, the child record can exist independently of the parent. This makes Lookup Relationships ideal when there […]

Factors that Affect Data Access

Some factors affect access to your organization’s data. When using the API, the following factors affect access to your organization’s data: Access Object-Level and Field-Level Security Sharing User Permissions User Permissions that Override Sharing Objects properties Related Objects Page Layout and Record Types Acces Your organization must be enabled for API access.Objects may not be […]

Context Variables of Apex Triggers

Apex Triggers have access to several context variables that provide information about the trigger event and the records involved. These context variables are automatically provided by Salesforce and can be used within the trigger code to perform various operations. These context variables provide a lot of information about the trigger event and can be used […]

Trigger Events in Salesforce

There are multiple apex trigger events for both before & after context DML  –before insert– after insert– before update– after update– after undelete– before delete– after undelete