Latest Articles
  • Generating PDFs in Salesforce: Visualforce vs New Apex Blob.toPdf() (Spring ’26 Preview)

    Generating PDFs in Salesforce: Visualforce vs New Apex Blob.toPdf() (Spring ’26 Preview)

    PDF generation is a very common requirement in Salesforce for documents such as invoices, receipts, contracts, summaries, certificates, and reports.” For many years, Salesforce developers had only one reliable way to generate PDFs:👉 Visualforce pages rendered as PDF Even when Apex was used, Visualforce was still mandatory for the actual PDF rendering. With the…

  • Server Side OFFSET-Free Lazy Loading (Keyset Pagination) With Infinite Scroll In Salesforce LWC

    Server Side OFFSET-Free Lazy Loading (Keyset Pagination) With Infinite Scroll In Salesforce LWC

    Introduction When building modern Salesforce Lightning Web Components (LWCs), one essential UX feature is lazy loading (or infinite scrolling). It helps load data incrementally as users scroll — improving performance, reducing query load, and creating a smooth user experience. Most tutorials and sample code rely on SOQL’s OFFSET keyword. This approach introduces serious scalability…

  • Understanding Salesforce Composite API: A Complete Guide with Examples

    Understanding Salesforce Composite API: A Complete Guide with Examples

    In today’s digital-first world, integrations are at the core of every enterprise application strategy. Salesforce, being the #1 CRM, offers a variety of APIs that allow developers to interact with the platform programmatically. Among them, the Composite API stands out as one of the most powerful. It enables multiple API calls in a single…

  • How to Download Attachment Or Files Using Lightning Web Components (LWC) in Salesforce Lightning Experience (LEX)

    How to Download Attachment Or Files Using Lightning Web Components (LWC) in Salesforce Lightning Experience (LEX)

    Introduction File handling is an essential part of many Salesforce applications, especially when working with records like Accounts, Opportunities, or Cases. Salesforce developers frequently implement file download features in Lightning Web Components (LWC). They do this when downloading an file from a record or fetching content from an external system. In this blog, we’ll…

  • 🔐 How to Enforce Apex Security in Salesforce: A Developer’s Guide

    🔐 How to Enforce Apex Security in Salesforce: A Developer’s Guide

    Introduction Ensuring data security in Apex is critical for protecting sensitive business information. Salesforce offers tools like profiles and permission sets. However, Apex code must explicitly enforce Field-Level Security (FLS) and Object-Level Security (OLS). This is essential when accessing or modifying records programmatically. This blog introduces and compares the key tools Salesforce provides to…

  • Building Reusable and Configurable Lightning Web Component (LWC) For Salesforce Experience Cloud / Communities,Using Chart.js as an Example

    Building Reusable and Configurable Lightning Web Component (LWC) For Salesforce Experience Cloud / Communities,Using Chart.js as an Example

    Introduction We often build Lightning Web Components (LWC) as Salesforce developers to deliver interactive features. However, configuring them for non-technical admins usually requires editing code. What if admins could adjust properties like chart type, title, or data filters directly in Community Builder? In this post, you’ll learn how to build an LWC using Chart.js…

  • Efficiently Passing Wrapper Classes to Future and Queueable Methods in Salesforce

    Efficiently Passing Wrapper Classes to Future and Queueable Methods in Salesforce

    Introduction Handling asynchronous processing in Salesforce often requires using @future or Queueable methods. These features are powerful. However, they come with certain limitations. One limitation is passing complex objects like wrapper classes as input parameters. In this blog, we’ll explore why these limitations exist and how you can work around them. We’ll also provide…

  • Mastering Dynamic Query Strings in Salesforce: Incorporating Date and Datetime in SOQL

    Mastering Dynamic Query Strings in Salesforce: Incorporating Date and Datetime in SOQL

    Introduction Salesforce developers often need to build dynamic queries in their applications. This is particularly useful when working with filters or conditions that change based on user input or business logic. One common requirement is constructing queries that handle Date and Datetime values dynamically. This blog will guide beginner Salesforce developers through creating dynamic…

  • A Beginner’s Guide to Covering Try-Catch in Apex with Test Classes

    A Beginner’s Guide to Covering Try-Catch in Apex with Test Classes

    Introduction Exception handling is a cornerstone of reliable Salesforce application development. However, testing try-catch blocks often poses challenges, as these blocks are not easily covered in test scenarios. A clever approach to address this issue is using a private static Boolean variable to simulate exception scenarios. This technique ensures that exceptions are thrown only…

  • Batch Class Shortcuts – part 1 : Using Existing Batch Class with Custom Query and Covering Batch Class without Start method Matching Data in test Class

    Batch Class Shortcuts – part 1 : Using Existing Batch Class with Custom Query and Covering Batch Class without Start method Matching Data in test Class

    Introduction Salesforce Batch Apex is an essential feature for processing large volumes of data asynchronously. Running a batch job with a custom dataset during development can pose challenges. This is especially true if you want to avoid altering the deployed code. Also, consider a scenario where you’re working in a developer sandbox. The dataset…

Contact Us For SFDC Admin, Apex and LWC Trainings at – cozmosoft2018@gmail.com
Learn Salesforce Admin In Hindi From Basic to Advance
Learn Salesforce Flows From Basic to Advance, along with using LWC and Aura in Flows