function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sandhya Marella 4Sandhya Marella 4 

Clone account records along with contacts and this should work in only lightning experience

Hi EveryOne,

I have a requirement that , i need to create a custom clone button on account object and when i clone the account record related contacts also get cloned and this functionlity should work in only lithtning Experience.

Urgent !!
Your hepling hands means a lot to me,
Thank you
ShivankurShivankur (Salesforce Developers) 
Hi Sandhya,

You could creata button in Salesforce lightning named 'Clone' and call a VF page on click of it.

The VF page and Apex logic would be similar to the implementation demonstrated on below link:
https://www.infallibletechie.com/2013/06/how-clone-record-with-related-records.html

Hope above information helps. Please mark as Best Answer so that it can help others in future.

Thanks.
bfgdhsg gvfdhbgfvbfgdhsg gvfdhbgfv
Yes in my opinion it is a possible job if you have a strong idea to apply just like you can see here (https://woahtech.com/best-laptops-with-numeric-keypad/) some related work.
V+NaikV+Naik
Hi Sandhya,

You can use Quick action and from Summer'21 we also have LWC supported in Quick Action! Refer below link for more information,
https://help.salesforce.com/articleView?id=release-notes.rn_lwc_quick_actions.htm&type=5&release=232

Let me know if this works for you.

Best,
Vinayaka Naik
Sandhya Marella 4Sandhya Marella 4
Hi Shivankur,

Thank you for you replay,

But it is not working , i am not able to create button with vf page.
thank you