You need to sign in to do that
Don't have an account?
John Gallinagh
Trigger to Create New Contract When Opportunity is Closed Won
How would I go about writing a trigger that automatically creates a new contract when an Opportunity is Closed Won? On the opportunity record I am collecting the information needed to setup a new contract record. Here are the custom fields I'm using on the Opportunity Record to capture the contract dates.
- Contract_Start_Date__c
- Contract_End_Date__c
- Contract_Term_Months__c
Can you post what you have done so far so we can help you?
About Trigger
https://developer.salesforce.com/page/Trigger_Frameworks_and_Apex_Trigger_Best_Practices
I am too struck with the same scenario John. I think its something to work with clone and declone function but am not sure how to do it. Please post it here incase you get any kind of solution.