You need to sign in to do that
Don't have an account?
Lakshmi S
How to clone the record using custom detail page?
Hi Team,
I am using standard clone functionality for cloning the record. but my code override the existing record, instead of creating new record.
Thanks
Lakshmi.
I am using standard clone functionality for cloning the record. but my code override the existing record, instead of creating new record.
public PageReference doClone(){ try{ //con.save(); PageReference pr = Page.HighRiskSuccessFactorsVFPage; pr.setRedirect(true); pr.getParameters().put('id',con.getId()); return pr; }catch(Exception e){ ApexPages.addmessage(new ApexPages.message(ApexPages.severity.ERROR, e.getMessage())); return null; } }Please let me know, how can we achieve this using custom functionality.
Thanks
Lakshmi.
It is not working.
Thanks
Lakshmi