Achieve your business goals faster by unlocking our Salesforce Cloud Services.
Returns a savepoint variable that can be stored as a local variable which we can use with a rollback method to restore the database to that point.
Restores the database to the state specified by the savepoint argument. Any emails submitted since the last savepoint are also rollbacked and not sent.
Savepoint sp1 = new Database.setSavepoint();
List<Account> accList = [SELECT name, phone FROM account WHERE name like ‘Acc%’];
integer i = 1;
for(Account a: accList)
A.phone = i+’ ’;
Savepoint sp2 = Database.setSavepoint();
for(Account b: accList)
b.name=b.name + ’ss’;
Savepoint sp3 = Database.setSavepoint();
< < Previous
Next > >
The batch is going to start shortly. Fill the form given below to Register yourself now.
Fill the form below to get a Result
Fill the form below to get a demo of this course.
Online Salesforce Development Course is soon going to be launched. Please fill the form and we will notify you about the course.