Category Archives: Admin

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

SOQL in salesforce

What is SOQL? SOQL means Salesforce Object Query Language. It is used to query the data (or) retrieve the data. We can also retrieve corresponding parent/child records. It will return the result in the form of List<sobject> / map<id, sobject>. SOQL can return 50,000 records at max. QUERY :- Query is a statement written to… Read More »

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

Cron Trigger

Any job that is scheduled in the salesforce will be registered or CronTrigger object (which is available from version 17 and later). If you want to know the status of the job, we can write a SOQL on CronTrigger object using jobid generated by system.schedule( ) method invocation. Syntax: cronTrigger cron = [select id,cronExpression from… Read More »

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

Batch Apex in Salesforce

What is Batch Apex? Batch Apex If we want to process large number of records on daily basis or nightly basis, or specific time of interval then there is a possibility of encountering governing limits. To resolve the governing limits issue, we will run the operation as asynchronous operation using batch apex. Batch apex will… Read More »

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