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
Vasundhara Velgoti 4Vasundhara Velgoti 4 

clone a object using custom button on visualforce page

I have an object "A" . I have custom button ( clone) on Visualforce page vf1. When i click on clone i am able to clone the Object A . Can anyone suggest me best way to achieve this?
BALAJI CHBALAJI CH
Hi Vasundhara,

You can approach different methods to clone the records. 
Easy way is URL hacking. You can copy the link from the address bar after clicking CLONE button from another OEM salesforce page, and then modifiyng it to work in your application. 
You can also write Custom Controller for this functionality. Please find below link for an example:
https://developer.salesforce.com/forums/?id=906F0000000BWMkIAO

Let us know if thate helps you.

Best Regards,
BALAJI