+ Start a Discussion
sridhar sridharsridhar sridhar 

Record owner should change after clone


Hi all, 

clone(custom clone ) button is not change the record owner after clone. 

but here record owner should change to who have cloned the record.

how to achive this???  
Rahul KumarRahul Kumar (Salesforce Developers) 
Hi Sridhar,

How to copy Record Owner from Cloning Functionality in Salesforce.Please refer the below link for reference. I hope it will be helpful.

Please mark it as best answer if the information is informative.

Best Regards
Rahul Kumar

 
RKSalesforceRKSalesforce
In Your Clone code in field mapping  add OwnerID = UserInfo.getUserId().
Please let me know if helped.

Regards,
Ramakant