You need to sign in to do that
Don't have an account?
sai manoj
how to write a apex program to insert list of account with list of contact method as parameter
-Input - list of accounts, list of contacts
-action- save in database
if record of account and corresponding contact has been failed that record has not insert
Note -- create method signature-(method with parameters) as list of accounts and list of contacts parameters - list<Account>accts, list<contact>conts
---- Create save point
insert accounts from parameter
insert contacts from parameter
-- roll back in case of exception
please give any guidance if any one know
-action- save in database
if record of account and corresponding contact has been failed that record has not insert
Note -- create method signature-(method with parameters) as list of accounts and list of contacts parameters - list<Account>accts, list<contact>conts
---- Create save point
insert accounts from parameter
insert contacts from parameter
-- roll back in case of exception
please give any guidance if any one know
please guide me