You need to sign in to do that
Don't have an account?
TTagg
Apex Trigger to Populate Custom Fields on Related Object
We use a custom object called Loan and Loans have opportunities.
Loans have custom fields like UPB, Term, Interest Rate, etc..
Opportunities have new UPB, Term, Interest Rate..
I need to write a trigger that would populate the custom fields on the loan with the custom fields on the opportunity when the stage of opportunity = Completed
Thank you for your help!
Loans have custom fields like UPB, Term, Interest Rate, etc..
Opportunities have new UPB, Term, Interest Rate..
I need to write a trigger that would populate the custom fields on the loan with the custom fields on the opportunity when the stage of opportunity = Completed
Thank you for your help!
Please go through https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_qs_HelloWorld.htm
Thanks,
N.J
All Answers
I am a complete beginner to apex. This is more of a question and clarification as to if this is something that is possible or is close to best practice.
I apologize for asking so straight fowardly. If there is a trigger that is similar or a quick start where I could begin writing the trigger on my own. More or less I'm looking for advice, my apologies again.
Please go through https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_qs_HelloWorld.htm
Thanks,
N.J
Looking at your problem, you might be able to this with a workflow rules and field update and not have to go down the trigger route. Always good to keep it simple where possible.