You need to sign in to do that
Don't have an account?
sales force 48
apex code for Clone of parent records along with child records
Hi Guys,
I have a fucntionality where i will get list of accounts to be cloned
for example
List<Account> lstacc=[Select id,Name from Account];
when i clone all the accounts records its corresponding child records also should get cloned and inserted into new cloned accounts,
Can anyone give me the piece of code.
URGENT!!!!!!!!!!!
I have a fucntionality where i will get list of accounts to be cloned
for example
List<Account> lstacc=[Select id,Name from Account];
when i clone all the accounts records its corresponding child records also should get cloned and inserted into new cloned accounts,
Can anyone give me the piece of code.
URGENT!!!!!!!!!!!
To Clone parent records along with child records Please refer the below link for reference.
- https://salesforce.stackexchange.com/questions/8493/deep-clone-parent-child-grand-child
- http://www.infallibletechie.com/2013/06/how-clone-record-with-related-records.html
I hope it will be helpful.Please mark it as best answer if the information is informative.
Best Regards
Rahul Kumar