Posts

Learn Apex Batch Job

Batch Class in Salesforce Batch Apex is exposed as an interface that must be implemented by the developer. Batch jobs can be pro grammatically invoked at run time using Apex. Need of Batch Apex: - As you all might know about the salesforce governor limits on its data. When you want to fetch thousands of records or fire DML on thousands of rows on objects it is very complex in salesforce and it does not allow you to operate on more than certain number of records which satisfies the Governor limits. We have to create an global apex class which extends Database.Batchable Interface because of which the salesforce compiler will know, this class incorporates batch jobs Example: Class implementingBatchJob implements Database.Batchable{ global final String Query; global deleteOpp (String q) { Query=q; } global Database.QueryLocator start(Database.BatchableContext BC) { return Database.getQueryLocator(query); } global ...

Common Salesforce Interview Questions Series 1

Image
                                                                     #1 Triggers and Order of Execution While  save a record with an  insert ,  update , or  upsert  statement : #  JavaScript validation if the record contains any dependent picklist fields Loads the original record from the database or initializes the record for an  upsert  statement. Loads the new record field values from the request and overwrites the old values. If the request came from a standard UI edit page, Salesforce runs system validation  Executes all  before  triggers Runs most system validation steps again, such as verifying that all required fields have a non- null  value, and runs any user-defined validation rules. Executes duplicate rules. If the dupl...