Test class

Test class for batch apex

Batch apex is always in rescue whenever you need to process a huge chunk of data.

Consider the following batch apex. 

The business functionality it achieves is.

Check for a change in a custom field called keywords__c in Account object and Insert that topic into a community.

Automating Approval process with Apex trigger

Lets take a sample requirement 'I want to submit an Opportunity record to Salesforce approval process when opportunity Amount is greater than one lakh'. Before writing the Trigger you first you should create a 'Salesforce Approval Process' and the process should have matching criteria(Greater than 1 lakh). To create a approval process go through this link.