since opportunity contact roles doesnt have an option to write triggers, i am using a batch process to sync it with my custom object.
Opp and OpportunityContactRole are related with oppid, Project and customobj are related by projectid
Project and Opp are related with oppid. Project have lookup for opp ids.
The question that i have is
- If it was just inserting from a opportunitycontactRole into a empty custom object, then i could loop through all the opportunitycontactRole and create a new record for customobj and replacing the oppid with projectid from a map of oppid and projectid. But if there is a record already present and if there is a change made to the contact only then how would i check and update it? Also if there were some records in customobj i am stuck on how to go about doing it
Any pointer would be great help