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

How to check opportunity team member access level in opportunity team member after insert trigger

I have one requirement, if the opportunity team member is added with 'read/write' access,  add the user in contact role.  I added a user as opportunity team member with red/write privilege and I queried opportunity share in after insert trigger of opportunityTeam member, the record is shown with 'read' access. How can I know the access level.  
ShashankShashank (Salesforce Developers) 
Would you be able to share the code so that I can check if anything is wrong?