WAP in apex to create 5 case records with all the values (accounts, contacts, etc) filled in. | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

WAP in apex to create 5 case records with all the values (accounts, contacts, etc) filled in.

1st Jun 2021, 1:59 PM
nidhi biswas
nidhi biswas - avatar
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;} } }
16th Nov 2022, 9:55 AM
Andrew Tye
Andrew Tye - avatar
- 1
wdym by apex? did you mean apex legends?
1st Jun 2021, 3:31 PM
Rellot's screwdriver
Rellot's screwdriver - avatar