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.
Database class methods returns the result of data operations. These result object contain useful information about data for each record such as whether the operation is successful or not and any other information.
Each type of operations returns a specific result object type, following are:
Public static void main()
List<Account> accList = new List<Account>();
for(integer i = 0; i < 10; i++)
accList.add(new Account(name=’Result Test’+i, numberOfEmployees=i));
Database.saveResult saveList = Database.insert(accList, false);
for(Database.saveResult s: saveList)
System.debug(‘I was successful = ’+s.getID());
System.debug(‘I was Unsuccessful = ’+s.getID+’ because of following errors’);
for(Database.error dr: s.getErrors())
System.debug(‘fields affected by insertion are :’ +dr.getFields);
< < 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.