If requirement is to clone Account object record, we also need to clone all of its contacts and opportunities etc. I need this solution which will work for all the custom and standard objects. Hint - Use SObject in your code to achieve this.
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!