Aggregate Functions

Use aggregate functions in a GROUP BY clause in SOQL queries to generate reports for analysis. Aggregate functions include AVG(), COUNT(), MIN(), MAX(), SUM(), and more. You can also use aggregate functions without using a GROUP BY clause. For example, you could use the AVG() aggregate function to find the average Amount for all your opportunities. Example SELECT AVG(Amount)FROM Opportunity GROUP BY clause is used in SOQL query to… Read More »

Lead and Case assignment rules in Salesforce

What is an Assignment Rule? Assignment Rules are used to assign Leads and Cases automatically to the assigned users based on criteria. There are two types of Assignment Rules in Salesforce they are  Lead Assignment Rules and Case Assignment Rules. What is Salesforce lead assignment rules? Salesforce lead assignment rules defines the administrators to assign a lead to users and… Read More »

Future Method in Salesforce

FUTURE METHOD If a transaction has any long running operation/statements and if this operations is not having any dependency on rest of the operation then we can run the operation independent from the rest of the operation by using future method. Long running operation are called Bulk DML operations,webservice callouts. Rules to define future methods… Read More »

Map in Salesforce

Map It is key value pair. Key must be primitive data type and value may be primitive data types/Reference data type. Primitive data type are integer,decimal,string,id,Boolean,data… Only one key value is allowed to be null. Syntax Map<key,value> variablename = new map<key,value>(); Data is storing according to keys dictionary order. keys are case sensitive Methods Put(key,value);… Read More »