Master the concepts of Salesforce in just 45 days Click here to know more.
Are you a smart person who loves to communicate with people? If yes, then join us as a Business Development Executive.
public static void main()
Account a = new Account(Name=’Shubham’, numberOfEmployees=150);
List<Contact> newConList = new List<Contact>();
List<Contact> conList = [select firstname, lastname from contact];
for(Contact cc : conList)
Contact c1 = new Contact(lastname=cc.lastname, firstname=cc.firstname);
} // too many DML statements, hence Limit Reached
insert newConList; // only 1 DML Statement
Note: We cannot insert a record in which id is specified.
To create contact and relate to existing account:
Account a = [select name from account where name like ‘sh%’];
Contact c = new Contact(lastname=’Again’, Account_id=a.id);
< < Previous
Next > >
The batch is going to start shortly. Fill the form given below to Register yourself now.
Fill out the form and get consulted by our Salesforce experts.
Fill out the form to figure out to detemine the perfect Salesforce profile for yourself.
Fill the form below to get a demo of this course.
Fill out the form to get your Premium Salesforce Development Course
Online Salesforce Development Course is soon going to be launched. Please fill the form and we will notify you about the course.