function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Gary PayneGary Payne 

Can Opportunity Split fields be used in formlua fields on a custom object?

We want to include the data from Opportunity Splits into a custom object called "NBR" (stands for new business request).  Is there a way to add the data from each Opportunity Splits field and incorporate it into the NBR record.  Note the NBR is in a Master-Detail relationship with the Opportunity object.  The NBR is used by sales personnel to request payment of commissions, which should include the Opportunity Splits data.
I think so you should be able to add this 
1) writing trigger on opportunity splits and populating NBR object
2) writing a workflow rule to update NBR object on create / edit of opportunity field

Gary PayneGary Payne
Can you provide an example of a trigger for Opportunity Splits?  I am not a developer yet but am studying to become one.  Would I also need to create an Apex Class and Test?