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
SapamrmSapamrm 

Clone record from list view

I would like to clone records starting from a list view.

Right now I have a new custom list button, but with that I can not perform an action for a specific record in the list.

 

Is it possible to place a custom buttom in the 'action'-column (so next to Edit|Del)? If not, is there perhaps another solution to meet this demand?

 

 

 

 

Thanks.

kyle.tkyle.t

You could create a formula field that ouputs a url (the clone url) and display that on the list view.

SapamrmSapamrm

Good idea kyle.t!

 

I will definitely give that a try!

 

Thanks.

SapamrmSapamrm

Hmm I'm trying to create this formula field but I can't manage to get it right!

 

So basically I would want the functionality of a clone button, but then in URL format.

 

 

If I push the clone-button, I am redirected to the following URL:

http://na1.salesforce.com/a0E30000005xPqI/e?clone=1&retURL=%2Fa0E30000005xPqI

 

a0E is my custom object's code (name is CC_Follow_up__c)

0E30000005xPqI is the recordID

 

So how do I adapt the code of the clone-button? I know I have to insert the "Id" somewhere but I don't know exactly how to put it..

 

 

Help is appreciated!

kyle.tkyle.t

the formula should be something like

 

 HYPERLINK("/"+Id+"/e?clone=1&retURL=/"+Id , "Clone")

 

This should give you a link that says "Clone" which directs you to the url

 

http://na1.salesforce.com/<id of current record>/e?clone=1&retURL=%2F<id of current record>

UK 1UK 1
Hi Team,
Following Up the same question. It is working fine for standard things. but I have a requirement where NEW & EDIT have Visualforce Pages for Contact Object. Now when User clicks on Clone button, It should redirect to the same VF page and when saved, it should create new record. 

Eg: Pagename='DisplayContacts'

Please Help me out with this

Thanks In Advance