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
Tim WoldTim Wold 

whats the easiest way to clone all data from a object and create a new object? For instance I want to duplicate all data from opportunity at the point of closed won to become a new object i named Project.

Naveen IlaNaveen Ila
Hi Tim

We can achieve this using process builer. 

       Set the criteria like 

                         isChanged(Opportunity.Stage) && Opportunity.Stage='ClosedWon'


Be sure whenever new is field added to Opportunity, the process builder needs to be updated to pass new field value to Project object. 

Let me know if want to implement anyother complex business functionality here. 


Regards,
Naveen Ila