Achieve your business goals faster by unlocking our Salesforce Cloud Services.
public static void main()
{
Account a = [select name from Account where name like ‘Sh%’ limit 1]
a.name = ‘Cyntexa’;
Update a;
}
List<Contact> conList = [select firstname, lastname from contact where
createdDate = Today()];
Integer i = 1;
for(Contact cc : conList)
cc.firstname=cc.firstname+i);
i++;
Update conList;
Note: We cannot modify a list or collection in a foreach loop where its even elements are iterated. (infinite loop)
< < 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.