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
RelaxItsJustCodeRelaxItsJustCode 

How do you write test code for split commissions? Kudos offered to winning answer.

It seems I need to take the opportunity owner and the extra opportunitysplit user and insert them both at the same time in the test code but I cannot seem to workaround this to create a opportunitysplit in test code.

Please advise what does it take apex test code wise to create a opportunitysplit 50/50 between two users on an opportunity?

Kudos given to anyone that has a winning answer.

Thank you,
Steve
Suneel#8Suneel#8
Are you trying to write a test class for a trigger?If so for what what functinoality?Sorry,I didn't get your issue clearly from the above description