+ Start a Discussion
vamsi kolimivamsi kolimi 

write an apex program to insert an acount record and a contact record and a related case record to account and contact

Naval Sharma4Naval Sharma4
Hi Vamsi,

Do you have a code snippet which you have already tried. This forum is for helping where you stuck and looks like you're expecting someone to write the whole code for you. Please provide the code which you have written so far and having issues with.
AbhishekAbhishek (Salesforce Developers) 
Vamsi,

Try the code as suggested in the below article,

https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/langCon_apex_dml_examples_insert_update.htm