Posts

Own Default Email Signature in Salesforce

Image
Yes, when using the Send Email function, when crafting a new custom, blank email - you can have a default email signature appear automatically on the bottom of your email. Simply follow below steps Click on your name (in the upper right hand section of the screen), and navigate to  Setup Select  Email  >  My Email Settings Add your Signature in the appropriate box (see screenshot below for reference). Press  Save

autocomplete in visualforce page

Image
In this blog i will explain how we can use HTML datalist tag in visual force page to create a dropdown for input text box and capture the selected value in controller. Recently i faced a scenario where i need to show drop down for a input text box and if i write in  text box then relevant options should display in drop down. This can be achieved using <datalist> tag of html. A datalist will be created which will store the options in it. <datalist id="states"> <option value="Delhi"/> <option value="Kashmir"/> <option value="UP"/> <option value="Gujarat"/> <option value="Karnataka"/> </datalist> An input text will be created with  list  attribute. This attribute bind the input text to the datatable. <input type="text" list="states" id="inputValue"/> Now to pass the selected value value to the controller, an inputhidden tag will be used which...

Batch class salesforce

Batch apex is an interface given by salesforce to process large amount of data. As we know, salesforce provides governer limits on data extraction and DML operations in classes. In a SOQL query we can get only 50000 records and at once we can use only 10000 records in one DML operation. Total number of DML operations allowed in apex class is 150 hence we can process upto 1500000 records in an apex class. But to work on these many records in apex class we need to implement various complex loopings that will be tiring and time consuming job. Also for large scale industries the amount of data is more than 1500000 hence this approach cannot be used effectively. To overcome this problem, salesforce provides batch apex interface. This interface allows to process 50 million records without any complex logic and looping to implement. Batch is divided into 3 methods:-  1.  Query Locator  :- this methods runs as soon as batch stats running. This method is used to query the...