You need to sign in to do that
Don't have an account?

Help with a simple trigger
Dear all,
I have 2 custom fields on the Contract object.
Contract Status and Contract Validity
I need to ensure that everytime the Contract record is edited and saved, the Contract Status and Contract Validity fields are updated in the corresponding custom fields on the Account Object.
I need trigger and test class!!
Thanks
I have 2 custom fields on the Contract object.
Contract Status and Contract Validity
I need to ensure that everytime the Contract record is edited and saved, the Contract Status and Contract Validity fields are updated in the corresponding custom fields on the Account Object.
I need trigger and test class!!
Thanks
Rajiv is right ,You shuold ask to write code in forum .
But next time onwards try with some approch and let us know if you are facing any issue .If we will write code then it will be difficult to manage forum for future .I know you are NewBee still so many blogs and materials are there to follow .
Please try with below code it will help you ,
Please follow below links which help you to write trigger and test class.
http://manojjena20.blogspot.in/2013/03/manojs-trigger-blog.htm
http://www.salesforcetutorial.com/apex-trigger-create-simple-trigger/
http://www.sfdc99.com/2014/04/06/example-how-to-write-an-advanced-trigger/
https://developer.salesforce.com/forums/ForumsMain?id=906F0000000BBAZIA4