Hi Abdul I will explain my requirement briefly. When Opportunity is Closed Won and the Contract Duration is 3 months, and planning for further contracts to the same customer so that we have generate multiple opportunites earlier (immediately) for 2years. So as per the concept, 2years(i.e 24months)/3months calculation, totally 8 opportunites have to generate automatically.
Likewise, I need a calculation basis code to find how much opportunities have to create automatically for 2years. If i changed the year as 3year, then 12opportunies have to generate.
You can create a batch to run nightly for this.
You can read the following articles
https://trailhead.salesforce.com/content/learn/modules/asynchronous_apex/async_apex_batch
Abdul
I will explain my requirement briefly. When Opportunity is Closed Won and the Contract Duration is 3 months, and planning for further contracts to the same customer so that we have generate multiple opportunites earlier (immediately) for 2years.
So as per the concept, 2years(i.e 24months)/3months calculation, totally 8 opportunites have to generate automatically.
Likewise, I need a calculation basis code to find how much opportunities have to create automatically for 2years.
If i changed the year as 3year, then 12opportunies have to generate.
Sorry for the extreme delay.
Just looking to see if you are still looking for this solution.
Thanks
Thank you