+ Start a Discussion
ColaCola 

Auto-Renewing Contracts

Hi Guys,

We are going to be switching our contracts in SFDC to be auto-renewing, so every year, right before the contract expires, we want to auto-generate an identical contract with all the same info but updated start and end dates. I'm assuming this is possible via a trigger?

Thanks!
Best Answer chosen by Cola
Shashikant SharmaShashikant Sharma
Yes It could be done by trigger but in that case you need some action on record to fire the  trigger code. Such as a time based event on record that when Enddate == today a field Renewal__c becomes true and a clone of contract is created.

A better option could be that you run a Daily Schedule which checkes records ending today and renew them. 

http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_scheduler.htm