Master the concepts of Salesforce in just 45 days Click here to know more.
8
10
58
27
Premium Salesforce Weekend Batch Start From Tomorrow.
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+’ ’;
i+=111;
}
update accList;
Savepoint sp2 = Database.setSavepoint();
for(Account b: accList)
b.name=b.name + ’ss’;
Update accList;
Savepoint sp3 = Database.setSavepoint();
if(roll=1)
Database.rollback(sp1);
else if(roll=2)
Database.rollback(sp2);
else if(roll=3)
Database.rollback(sp3);
< < 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.