-

Introduction Origin Salesforce’s journey with HTTP callouts began with the introduction of Remote Site Settings. Administrators had to allowlist specific external endpoints with this feature. This was done before Apex code could make callouts to them. It enforced a layer of explicit security. However, as integration needs grew more sophisticated, integration management became challenging. The…
-

Introduction In Salesforce, roll-up triggers are a common technique to summarize child records’ data into parent records. Whether you’re counting related records or adding up specific field values, your approach choice greatly affects the solution’s efficiency. It also impacts maintainability. Two popular strategies are Aggregate Query and Map-Based Manual Aggregation. You can refer our previous…
-

Batch Apex in Salesforce is a powerful tool for processing large amounts of data asynchronously. In this blog post, we’ll explore how to use Database.Stateful to maintain state across the different transactions of a batch job. Specifically, we’ll: What is Database.Stateful? The Database.Stateful interface in Salesforce allows batch classes to retain instance variable values across…
-

Apex triggers can recurse when a trigger causes itself to execute repeatedly. This recursion potentially leads to infinite loops and hits Salesforce governor limits. This often happens when a trigger performs DML operations that invoke the same trigger again. To maintain system stability and data integrity, it’s crucial to implement strategies that prevent such recursive…
-

Introduction Leaflet is a lightweight, open-source JavaScript library for interactive maps. It provides an easy way to integrate maps into web applications. It offers powerful features such as markers, layers, and custom styling. In this blog post, we will explore the use of the Leaflet library in a Lightning Web Component (LWC). We will show…
-

When working with web development in Salesforce, developers often transition from Visualforce (VF) to Lightning Web Components (LWC). They encounter subtle differences. These differences affect how the DOM (Document Object Model) behaves. These subtle differences are impactful. A common question arises. Why does a static html element like <div> in Visualforce update automatically when manipulated…
-

In this blog, we will explore a powerful scenario. A Visualforce page dynamically loads an external JavaScript library. It defines a global method and passes it to a Lightning Web Component (LWC) using Lightning Out. The LWC can then invoke this method, optionally passing parameters, to generate dynamic responses. This use case demonstrates seamless interoperability…
-

In continuation of our previous post Learning Apex Triggers (Part1), this guide will provide use cases. It will also provide examples for each trigger event. It is part of the “Learning Apex Triggers” series. Salesforce triggers are small pieces of code that run automatically when records change in Salesforce. They let you add custom logic…
-

Lifecycle hooks in Lightning Web Components (LWC) are critical for controlling component behavior during creation, rendering, and destruction. Understanding these hooks ensures efficient resource management, optimal performance, and robust error handling. In this post, we’ll explore each lifecycle hook, provide real-world examples, and discuss their pros, cons, and use cases. A lifecycle hook is a callback method…
-

Introduction In LWC, lazy loading can be implemented using server-side Apex or client-side JavaScript. It can be combined with either HTML tables or Lightning Datatable components. This guide explores four approaches, their unique features, trade-offs, and high-level implementation strategies. Unified Interaction Patterns: Scroll Bar vs. Load More Button Before diving into implementation methods, let’s explore…

Posts:
- 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)


