Future Methods in Salesforce

Introduction Future methods are another way to execute code asynchronously in Salesforce. They are defined using the @future annotation. Key Features Syntax Calling a Future Method Limitations Limitation for Asynchronous From / What Call @future method System.enqueueJob() Database.executeBatch() System.schedule() Anonymous Apex 50 50 100 100 @AuraEnabled method 50 50 100 …

Queueable Apex in Salesforce

Introduction Queueable Apex is a powerful asynchronous execution framework in Salesforce that allows developers to perform complex and long-running operations. It builds upon the functionality of @future methods and provides additional features like chaining jobs and accessing non-primitive data types. Key Features of Queueable Apex SyntaxQueueable Apex classes must implement …

Schedule Apex (Salesforce UI and CRON Expression – Asynchronous Apex)

Introduction Scheduled Apex allows developers to schedule a class to run at specific intervals using CRON expressions or the Salesforce UI. Key Features Syntax for a Scheduled Apex Class A class must implement the Schedulable interface. Scheduling Through Salesforce UI Scheduling Using CRON Expression CRON Expression Format Example CRON expressions: …

Batch Apex Salesforce

Introduction Batch Apex is used to process large data sets asynchronously by breaking them into manageable chunks. Key Features Batch Apex with SObject and Dynamic SOQL Use CaseTo fetch data dynamically using a SOQL query. Example: Dynamic Query with SObjects Execution Batch Apex with Iterable (Database.Iterable) In Salesforce Batch Apex, …

Property Binding in LWC with the lwc:spread Directive

Introduction With the Salesforce Summer ’23 release, Lightning Web Components (LWC) have become even more powerful and flexible with the introduction of the lwc:spread directive. This new feature makes it easier to pass multiple properties from a parent component to a child component, streamlining your code and enhancing its maintainability. …

Update Salesforce Records Using LWC and lightning/uiRecordApi Without Apex

In Salesforce, you often need to update records directly from a Lightning Web Component (LWC). Traditionally, this might involve writing Apex methods, but with the lightning/uiRecordApi, you can update records directly without writing any Apex logic. This post will guide you through the process step by step. Introduction The lightning/uiRecordApi …

Salesforce Winter ’25 Release: New Features for Admins & Developers

Salesforce continually enhances its platform through seasonal releases that occur thrice yearly: Spring, Summer, and Winter. Each release brings new features and improvements aimed at refining user experience and boosting efficiency. The Winter ’25 Release upholds this tradition, introducing exciting updates designed to streamline processes and enhance productivity. Exploring Winter …

Lightning Record Picker LWC: Simplify Your Salesforce Searches

When working with Salesforce, efficiently finding and selecting records is crucial for maintaining productivity. The lightning-record-picker component is a powerful tool that allows you to search for a list of Salesforce records that match your search input. It leverages the GraphQL wire adapter to search for records, displays the results, …