Welcome to thesalesforcedev !!!


Salesforce offers powerful automation tools to streamline business processes. Two of the most common are Salesforce Flow (declarative, point-and-click automation) and Apex Triggers (custom code). Both can run when records are created or updated, but they differ in capability and use cases. In this post we’ll explain what each tool is. We will compare…

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…

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…

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…

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…

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…

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…

Introduction Asynchronous programming is essential for building responsive and efficient web applications, especially in Salesforce’s Lightning Web Components (LWC). By using async/await, developers can write cleaner code. This code is more maintainable for handling operations like Apex calls, external API requests, or other long-running tasks. This guide will explore how to leverage async/await in…

Inbound integration in Salesforce refers to scenarios where external systems send data or requests to Salesforce. This comprehensive post is designed to help you make an informed decision based on your unique business needs. What is Salesforce Inbound Integration? Salesforce Inbound Integration refers to when an external system sends a request to Salesforce to…

Introduction : In continuation to our previous blog post Calling Lightning Web Components (LWC) with Selected Record IDs from List Views in Salesforce Lightning Experience (LEX), let’s see in this blog post Calling LWC from list views in experience cloud with selected record ids in salesforce. Our earlier blog mentions approaches that do not…

Posts:

