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
Alex ValavanisAlex Valavanis 

Auto clone Closed Won opportunities

Hello,

I'm very new to developing and i'm pretty sure this question has been raised before BUT

Could you please tell me how to auto clone CLOSED WON opportunities (new business and renewals) 30 DAYS  BEFORE EXPIRY DATE for example. Is there a step-by-step guidance?

Thanks,
Alex
Amit Chaudhary 8Amit Chaudhary 8
You can create the Batch job to clone the closed opportunity. And Schedule the Batch job in late night
Please check below post for Batch job
1) http://amitsalesforce.blogspot.com/2016/02/batch-apex-in-salesforce-test-class-for.html

Let us know if this will help you
 
Alex ValavanisAlex Valavanis
Hi,

I was thinking something like a flow in which a closed won opportunity would be cloned as "prospecting" 30 days before its expiry day.