I'm still pretty new to APEX and wanted to see if you could help. I think its pretty straight forward.
I have a custom object called Interest which contains two custom fields. I want to update the opportunity with those fields when an Opportunity is created. There is a look-up relationship from the Interest to the Opportunity. Interest records (already have the relevant fields populated) and are automatically associated with opportunities when an opportunity is created.
All I want to do is update the opportunity fields with the fields from the interest object.
Many thanks for your help in advance!
Custom Object : Interests API Name: Interest__c
Fields on Interest Record Label Name: Core Lead ID Api Name: Core_Lead_Id__c Label Name: Core Instance ID API Name: Core_Instance_id__c
Fields on Opportunity Label Name: Core Lead ID Api Name: Core_Lead_Id__c Label Name: Core Instance ID API Name: Core_Instance_id__c
I want to populate the opportunity fields upon creation of the opportunity. Not sure it matters however users create opportunities automatically when they convert Leads to a Person Account and Opportunity. (YES I SAID PERSON ACCOUNT)