+ Start a Discussion
SteveMouSteveMou 

Cross-Object Apex Trigger Help

I realize now that Workflows can not update fields that reside on two separate objects (Hopefully in 2012 this will happen according to Dreamforce Roadmap).

 

In the meantime could someone help get me started on how to create an Apex Trigger that would accomplish this? Here is what I am attempting to do.

 

If a user has added a Salesmember to the Opportunity_Sales_Team Custom object with a Type of Account Development then I want it to take the SalesTeamMemberName and display it in the Team field I have added to the Opportunity Standard object

 

Standard Object -Opportunity

Standard Object Field-Team

 

Custom Object- Opportunity_Sales_Team

Custom Object Fields- SalesMemberName and Type

 

Thanks so much in advance for any help or advise.