Category Archives: Admin

Create Session Id in Salesforce Using Anonymous window

Here we are going to learn how to create session id in salesforce. >> Go to Developer console >> Open Anonymous window >>Write below code >> Then execute the window >> We will get debug log and copy the id like below image >> Copy Id Paste on below code on notepad. >> Replace domainname… Read More »

Share this...
Share on Facebook
Facebook
Email this to someone
email

Aggregate Functions in Salesforce Visualforce page

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 »

Share this...
Share on Facebook
Facebook
Email this to someone
email

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 »

Share this...
Share on Facebook
Facebook
Email this to someone
email

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 »

Share this...
Share on Facebook
Facebook
Email this to someone
email

Set in Salesforce

Set It doesn’t allow duplicates. It maintains dictionary order. Set maintains hash code mechanism. It allows only one null value. Syntax set<Datatype> variable name = new set<Datatype>(); Methods Add(Element); addAll(list/set s); contains(Element); containsAll(set/list s); size(); clear(); remove(Element); Share this…Facebookemail

Share this...
Share on Facebook
Facebook
Email this to someone
email

List in Salesforce

List It allows Duplicate values . It maintains insertion order. List maintains index based. It allows multiple null values. Syntax List<Datatype> variable name = new List<Datatype>(); Examples List<integer> a = new List<integer>(); List<Account> b = new List<Account>(); List<integer> ages;  Ages = new List<integer>(); List<integer> ages = new List<integer>(){20,30,50}; Methods available in List add(Element); add(index,Element); addAll(list… Read More »

Share this...
Share on Facebook
Facebook
Email this to someone
email

Custom settings in Salesforce

What is custom setting? Custom setting is also used to store the data, but the data which is stored here can be retrieved without writing a soql query. As if we retrived data without writing soql query then performance will be faster They are 2 types of custom settings, they are :- List custom setting… Read More »

Share this...
Share on Facebook
Facebook
Email this to someone
email

DML in Salesforce

DML stands for Data Manipulation Language. Where we want to manipulate the data in the sObject we will use Dml. Types of DML operations INSERT UPDATE UPSERT DELETE UNDELETE MERGE Dml can be performed in 2 formats 1. Using  keywords (insert,update,delete,undelete,merge,upsert)(used as for Atomic operation) 2. Using predefined apex class database. (used as for Atomic… Read More »

Share this...
Share on Facebook
Facebook
Email this to someone
email