Queueable Apex

Queueable Jobs Queueable Jobs are asynchronous Apex processes queued for executionbut they provide jobId when you submit to monitor job. You can use AsyncApexJob table for more information about the job.You can use non-primitive types.you can chain job Queueable Interface This interface enables you to add jobs in to the queue.Due to Asynchronous in nature […]

Batch apex in Salesforce

Batchable Interface Database.Batchable is an interface in salesforce which has following methods global (Database.QueryLocator | Iterable<sObject>) start(Database.BatchableContext bc); global void execute(List<Database.BatchableContext bc, sObject>); global void finish(Database.BatchableContext bc); global class BatchExample implements Database.Batchable<sObject> { public BatchExample() { } global Database.QueryLocator start(Database.BatchableContext bc){ return Database.getQueryLocator(‘select id, name, Ownerid from Account’); } global void execute(Database.BatchableContext bc, List<Account> acc){ […]


Function behave like a servant for programmer. A servant have a name, A servant do something (What his master told him) Servant may require tools(e.g Vacuum Cleaner to clean room) Servant give result int ted(int a, int b){ // do something interesting than this int c = a+b; return c; } Here the whole code […]

Scroll to top