Different ways to Schedule Apex Class in Salesforce

In this post, we will implement different ways to schedule Apex Class in Salesforce. It is very important to schedule Apex Classes in certain business scenarios. This helps to run Apex Classes at specific times, even at regular intervals. Let’s hop into the implementation. How to make Apex Class schedulable? To make class schedulable, first, … Read more

Safe Navigation Operator – Avoid Null Pointer Exceptions

In this post, we will use a new feature introduced in Winter ’21 that is Safe Navigation Operator in Salesforce (Apex) to replace explicit, sequential checks for null references and unnecessary IF conditions. This Operator is useful to avoid Null Pointer Exceptions in Apex. It is a Short-Circuit operator that attempts to operate on a … Read more

Send Custom Notification using Apex in Salesforce

In this post, we will implement the functionality to Send Custom Notification using Apex in Salesforce. This feature is introduced recently in the Winter ’21 release. We can also send the Custom Notification using Process Builder in Salesforce. You can check the complete implementation for that here. Implementation In this implementation, we will Send Custom … Read more

Retrieve Component using Package.xml (All-in-One)

In this post, we will see how can we retrieve components using the Package.xml file from Salesforce Org. There are different types of components in Salesforce and it is difficult to remember the API names and Syntax of all the components required to retrieve using Package.xml. Hence, this post will help you to retrieve any … Read more

Apex Trigger Best Practices (All-in-One)

In this post, I will explain all the Salesforce Apex Trigger Best Practices that everyone must follow before writing an Apex Trigger. Apex Code can be executed from the Triggers. And Triggers are executed before or after the Salesforce Records are created, updated, deleted, or undeleted. Hence, it is absolutely necessary to follow the Best … Read more