-

Introduction: Welcome to our first blog post, in “Learning Apex Triggers” series. In this blog post, we will be learning about basics of apex triggers, their events and features. Trigger Best Practices Trigger Operation type and context variables availability Before Insert: After Insert: Before Update: After Update: Before Delete: After Delete: After Undelete: For more…
-

Introduction: In this blog post, we will see an example on how to roll up child values on a parent record. This applies to both master-detail and lookup relationships. In this example. we will demonstrate updating total contacts count on Account. This will be done using roll up summary apex trigger and aggregate query. The…
-
3. If map of <Id/String.etc,Decimal> is required and you need to sum/count all the child records – Below is an example in Apex. It can be used to create a map to track the total opportunity amounts for each account. The key is the Opportunity Account Id’s. The value is the sum of all opportunities…
-
Sample Scenarios and code to create and use maps : 1. If direct map of Id and SObject is required – Sometimes, we need a map of Id and SObject of same type. We can use the map constructor for this scenario. It returns an Id field as the key. This is a very useful…
-
Salesforce Field Service Lightning (FSL) is a tool that helps businesses manage and optimize their field service operations. It includes features such as dispatching, scheduling, and route optimization, as well as tools for managing inventory, equipment, and technicians. FSL is built on top of the Salesforce platform and can be customized and integrated with other…
-

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…
-
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) 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…

Posts:
- March 2026 (1)
- January 2026 (2)
- November 2025 (1)
- October 2025 (1)
- July 2025 (2)
- June 2025 (6)
- May 2025 (13)
- April 2025 (5)
- January 2025 (4)
- December 2024 (4)
- November 2024 (2)
- October 2024 (2)
- March 2024 (1)
- February 2024 (1)
- January 2024 (1)
- June 2023 (1)
- May 2023 (1)
- April 2023 (4)
- March 2023 (4)
- February 2023 (4)
- January 2023 (14)
- June 2018 (3)



