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
prufrockprufrock 

OpportunityPartner DML and OpportunityAccessLevel field Update of OpportunityTeamMember object

Hello,
I have a requirement where I need to add/update/delete OpportunityPartners of children opportunities of a parent opportunity. Apex compiler did not let me write a DML statement for that object. After looking at the access level of that particular object I found DMLs are not allowed via API (?). Also, I am adding/modifying/deleting OpportunityTeamMember records of the children, but again compiler did not let me change the OpportunityAccessLevel field.

I was just wondering if I am missing something or is there a workaround?

Your response is greatly appreciated.

Best Regards.