Select Page

Developers

Blog

Developers

DML – Data Manupulation Language

Insert Update Upsert Delete Undelete DML Examples public class DMLExamples { //insert demo public static void insertdemo(){ list<Account> accList= new list<Account>(); for ( integer i=0;i<160;i++) { Account a= new Account(); a.Name='DML160R';...

read more

Collections in Apex

Lists A list is an ordered collection of elements that are distinguished by their indices. List elements can be of any data type—primitive types, collections, sObjects, user-defined types, and built-in Apex types. Sets A set is an unordered collection of elements that...

read more

Day Five

SOSL Salesforce Object Search Language (SOSL) is a Salesforce search language that is used to perform text searches in records. Use SOSL to search fields across multiple standard and custom object records in Salesforce. SOSL is similar to Apache Lucene. Adding SOSL...

read more

Day Three

SOQL DISPLAY LIST OF ACCOUNTS ---------------------------------------------- LIST<ACCOUNT> LISTACC; LISTACC=NEW LIST<ACCOUNT>(); LISTACC=[SELECT NAME,ID,TYPE,SITE FROM ACCOUNT ]; FOR(INTEGER I=0;I<LISTACC.SIZE();I++) { SYSTEM.DEBUG(LISTACC[I]); }...

read more

Day Two

Collections Collections in Apex can be lists, sets, or maps. There is no limit on the number of items a collection can hold. However, there is a general limit on heap size. ListsA list is an ordered collection of elements that are distinguished by their indices. List...

read more