Posts

Showing posts from July, 2023

Salesforce Asynchronous Apex: How to Call Queueable Apex Class from a Trigger

Image
  Looking for Salesforce Training & HandsOn Projects? Trailblazer Profile  |  LinkedIn  |  Salesforce Blog  |  Facebook  |  Youtube Channel  |  WhatsApp Community Queueable Apex is just another flavor of Async Programming implementation offered by the Salesforce Platform.  You can refer to my earlier posts on Queueable Job to get a context around this concept: Salesforce Asynchronous Apex: How to implement Queueable Apex Job Salesforce Asynchronous Apex: How to chain Queueable Apex Job Salesforce Asynchronous Apex: How to monitor Queueable Apex Job In this article, we will explore how to call a Queueable Job from within the Trigger.  We can start with a simple demo to explain the concept in the following steps:     Step-1: Create a brand new Apex Class to implement the Queueable Job. Step-2: We need to define a Constructor to call the Queueable Job from a Trigger & p...

Salesforce Asynchronous Apex: How to monitor Queueable Apex Job

Image
  Looking for Salesforce Training & HandsOn Projects? Trailblazer Profile  |  LinkedIn  |  Salesforce Blog  |  Facebook  |  Youtube Channel  |  WhatsApp Community Queueable Apex is just another flavor of Async Programming implementation offered by the Salesforce Platform.  You can refer to my earlier posts on Queueable Job to get a context around this concept: Salesforce Asynchronous Apex: How to implement Queueable Apex Job Salesforce Asynchronous Apex: How to chain Queueable Apex Job   In this article, we will explore how to monitor the progress of a Queueable Job using Async Job Id returned.    We can start with a simple demo to explain the concept in the following steps:     Step-1: The source of data for this demo will “Contacts” Object as shown below. Using the same records that we modified in the last demo. In this demo, we will be running a delete record opera...

Salesforce Asynchronous Apex: How to chain Queueable Apex Job

Image
  Looking for Salesforce Training & HandsOn Projects? Trailblazer Profile  |  LinkedIn  |  Salesforce Blog  |  Facebook  |  Youtube Channel  |  WhatsApp Community Queueable Apex is just another flavor of Async Programming implementation offered by the Salesforce Platform.   You can refer to my earlier post on Queueable Job to start fresh with the concept: Salesforce Asynchronous Apex: How to implement Queueable Apex Job In this article, we will explore how to chain one Queueable Job from another to accomplish a series of tasks in a predictable manner.   We can start with a simple demo to explain the concept in the following steps:     Step-1: The source of data for this demo will  “Accounts”  Object as shown below Step-2: We need to build the “SOQL” statement that we can use to query the data from Queueable Job. We can quickly build & test the SOQL using “Workbench” . This step will...

Salesforce Asynchronous Apex: How to implement Queueable Apex Job

Image
Looking for Salesforce Training & HandsOn Projects? Trailblazer Profile  |  LinkedIn  |  Salesforce Blog  |  Facebook  |  Youtube Channel  |  WhatsApp Community Queueable Apex is just another flavor of Async Programming implementation offered by the Salesforce Platform.   In this article, we will explore the implementation details of Queueable Apex & will deep dive into the core constructs required to build the class.   Queueable Apex is the  “public”  class that implements the  “Queueable”  Interface. This interface contains a method  “execute”  which the consumer class needs to override to provide the concrete implementation.   This  “execute”  method can access the  “instance properties”  of the class. This method always returns  “void” .   This Queueable Apex can be put into the execution queue by calling  “System.enqueueJob (<Queueable...