-

Roll up summary trigger To Update Child Records Count and total Sum of values of child records on Parent Record using aggregate query
Introduction: In this blog post, we will explore an example that shows how to roll up child counts using aggregate query. It will also demonstrate how to sum values on a parent record. This example applies to lookup relationships but you can use the same with master-detail also. Example Scenario: Imagine a business that manages…
-
Passing more than one parameter in a apex method as a single parameter from lightning component or refactoring the apex method.
In this post, we will see how to resolve the “CognitiveComplexity” Apex PMD error. Your apex method might be having more than one parameter. We will explore how you can make your apex method generic to get n numbers of parameters. When working with Salesforce Apex and JavaScript, you might need to pass multiple parameters…
-
Salesforce Field Service Lightning (FSL) overview –
Salesforce Field Service Lightning (FSL) is a field service management solution designed to help businesses manage and dispatch technicians, schedule and dispatch work, and track and optimize field service operations. It is a part of the Salesforce Customer Relationship Management (CRM) platform and is designed to help businesses improve customer satisfaction and technician productivity. Some…
-
How to create a Map of AccountId and List of Contacts – Map<Id,List()
To create a Map of AccountId and List of Contacts in Apex, you can use the following code: This code creates an empty map called accountContactsMap and then queries the Contact object to get a list of all Contact records. It then iterates through the list of Contacts and adds each Contact to the map,…
