Posts

  • Using Iterator & Iterable Interface in Apex

    In this blog post, we will discuss about the custom iterator, their usage and examples. Custom iterators can be useful in apex. They are majorly beneficial in batch classes because they provide more flexibility in how you iterate over records. By default, batch classes use a QueryLocator to retrieve records from the database. However, there…

  • Different ways to bind picklist values in Salesforce Lightning Web Components (LWC)

    In this blog post, we will explore various ways to bind picklist values in LWC. We will also discuss how to use them in the application. In the given LWC component, we have used three different types of picklist fields: Type, Industry, and Rating. Let’s discuss how we have bind picklist values for these fields.…

  •   If you’re working with Salesforce’s Apex programming language, you may need to write a query to search for specific records in the Salesforce database. In some cases, you may not know the specific values to search for at the time you write the query. In these cases, you can build a dynamic SOQL query…

  • Simplifying Data Transformation to Maps with CollectionUtils Class in Salesforce

    Introduction: Welcome to our new post of “Simplifying Data Transformation with CollectionUtils Class in Salesforce”. Are you tired of writing countless for loops just to transform a list of sObjects into a map? Do you want a generic, reusable, and type-safe solution to your data transformation needs? If so, you’re in luck! The CollectionUtils library…

  • Restrict specific characters in all input Text fields using apex trigger in Salesforce

    Introduction: Sometimes you may get a requirement to restrict specific characters in input fields. In such cases, Apex triggers come in handy. Salesforce is a powerful customer relationship management (CRM) tool that can store a vast amount of sensitive information. As a best practice, it’s essential to ensure that data is protected from malicious attacks…

  • Restrict Standard Picklist values within the defined set in Salesforce using apex triggers

    Sample Code: Here is the sample code for the trigger. It restricts Standard Picklist values, such as Opportunity Type and Lead Source fields, in the Opportunity object. This is done using an Apex Trigger called “ValidatePicklistValues”. For more helpful articles please visit – https://thesalesforcedev.in/

  • Add Pagination In HTML Table in Salesforce Lightning Web Component (LWC) using JavaScript

    In this post, we will discuss how to implement pagination in a HTML Table. This will be done in Salesforce Lightning Web Component (LWC) using JavaScript. Pagination is a common feature in web development. It allows users to navigate through large amounts of data by breaking it up into smaller, more manageable chunks. Scenario :…

  • Learning Apex Triggers (Part 2) – Trigger Handler Pattern Implementation

    Introduction: Welcome to the continuation of our previous post Learning Apex Triggers (Part1). Let’s explore the trigger handler pattern implementation. We’ll also discuss some best practices for triggers in the code in this post. Implementing a Trigger Handler Pattern in Salesforce is a widely recognized best practice. It enhances the organization and maintainability of your…

  • Learning Apex Triggers (Part 1) – Understanding Trigger Basics

    Introduction: Welcome to our first blog post, in “Learning Apex Triggers” series. In this blog post, we will be learning about basics of apex triggers, their events and features. Trigger Best Practices Trigger Operation type and context variables availability Before Insert: After Insert: Before Update: After Update: Before Delete: After Delete: After Undelete: For more…

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