-
Batch Processing using Apex Cursors – A use case of Apex Cursors
In the Apex class, I’ve used Apex Cursors for handling a large volume of records efficiently. The class processes records in chunks of 200 per Queueable transaction. When fewer than 200 records remain, the batch size automatically adjusts to match the remaining count. This class retrieves all U.S. Contact records and updates the Citizenship_Status__c field…
-
Integrating Salesforce External Services with Bearer Token Authentication via Named Credentials
This article walk you through to securely connect to external APIs using bearer tokens in Salesforce, using the External Credentials to store the token and configure Named Credentials to pass it in API requests. After setup, register the external service using an OpenAPI schema to make its actions available in Flow Builder for automation.Continue readingIntegrating…
-
Lightning Web Component: Dynamic Picklist Rendering via Lightning Data Service Based on Record Type and Field Dependency
This article demonstrates how to build a Lightning Web Component (LWC) that dynamically displays picklist values based on the selected record type and controlling picklist value, without using any Apex code. The component retrieves picklist values directly from the field definitions using Lightning Data Service, ensuring that nothing is hard-coded. For illustration, the example uses…
