0
WAP in apex to create 5 case records with all the values (accounts, contacts, etc) filled in.
2 ответов
0
public class quetsion_21 {
public static void ques_21(){
list<Account> acc= [SELECT ID,Name FROM Account LIMIT 5];
list<Contact> con=[SELECT ID,Name FROM Contact LIMIT 5];
for(integer i=0;i<5;i++){
case cs =new case();
cs.AccountId=Acc[i].id;
cs.ContactId=Con[i].id;
cs.comments='Hello';
system.debug(cs);
insert cs;}
}
}
- 1
wdym by apex? did you mean apex legends?