Category: Batch Class Advance

  • 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 needed…

  • Using Iterator & Iterable Interface in Apex

    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…

  • Using Custom Iterator & Iterable Interface in Apex

    Using Custom Iterator & Iterable Interface in Apex

    In this article, we’ll examine how custom iterators can optimize your data iteration process in Salesforce. We’ll cover the basics of what iterators are and how they work. Furthermore, we’ll explore examples of how you can use custom iterators to streamline your code. What is an Iterator? So what is an iterator, exactly? At its…