Setting Up VS- Code For LWC

With LWC, Coming to picture Salesforce has now officially introduced VS Code as IDE for development of Lightning Web Components. First we need to install the Visual Studio Code from the link. If you already have Visual Studio Code installed, there’s no need to reinstall it. After all installation is done . We need to … Continue reading Setting Up VS- Code For LWC

Custom Roll up With Apex Trigger.

Sometimes we have Requirement to have a number of Counts of Contact on Account, just like Rollup Field Salesforce. But Salesforce has provided Rollup Summary Field on the Master-Detail Object. Below is Sample code for the Same. Apex Trigger : trigger trgContactTrigger on Contact (before insert, after insert, before update,after update,after Delete) { ContactTriggerHandler objClass … Continue reading Custom Roll up With Apex Trigger.

Call Apex Through Process Builder

So today I will post how to call apex Class through Process Builder. Sometimes there is a requirement when we need to apex class through Process Builder. Apex Class : Public class InvokeClassThroughProcessbuilder { @InvocableMethod(label='Get Lead Name') Public static void LeadUpdatefromProcessBuilder(List <ID> LeadIds ){ Set<Id> leadId= new Set<Id>(); leadId.addAll(LeadIds); List< Lead > leadtoUpddate = new … Continue reading Call Apex Through Process Builder

Trigger To check Duplicate on Lead Using Email and Phone

The above functionality can be achieved by duplicate rules. But as we are into coding we will be writing trigger for it. We will be writing Trigger and Handler for it. The best practice for writing a trigger and Calling the apex class in which we will be writing the business logic for it. Apex … Continue reading Trigger To check Duplicate on Lead Using Email and Phone

Converting Lead with Apex In Salesforce

Hi Guys !!! Salesforce has given numerous functionality that we can use in the Standard way and get our job done but still, there are many areas in which we need to customize to achieve certain goals. So today I am going to discuss one of such functionality that is Converting Lead through Apex. At … Continue reading Converting Lead with Apex In Salesforce