I have a custom “Account Rep” object that is a child of the “Account” object. When an opportunity is entered under this account, I am trying (unsuccessfully) to iterate over the rows in the “Account Rep” object to add these reps to another custom object (commissions) that is a child of the opportunity object.
I tried to steal code from the “mass create records” example and my modifications are still lacking. Specifically, I am having issues copying the owner id from one model to the other and I don’t know how to iterate through the rows.
My first model is called “Reps” and I want to copy the following fields:
Owner
Rate1__c
Rate2__c
Rate3__c
To the model called “Commissions”. Let’s just say the field names are the same.
Question
Adding rows in one object based on another
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
