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
apyapy 

Cannot set OpportunityAccessLevel in OpportunityShare

I get following problem:
 
When I try to update the OpportunityAccessLevel in the OpportunityShare object and set it to "Edit" after having created an OpportunityTeamMember object
 I get the error message "field integrity exception: RowCause (cannot update sharing row with this cause)"
 
Any idea what could be wrong?
Avinash KaltariAvinash Kaltari

Just filter your query by adding rowcause =  'Team'.