You need to sign in to do that
Don't have an account?

OpportunityShare records are ready-only making the owner does not edit opportunity record
Hello there,
I am creating Opporotunity and Opportunity Team Member using API. While creating Opportunity Team member, an OpportunityShare record is getting created with OpportunityAccessLevel - Read-Only to the Opportunity, which is breaking some of my dependent functionalities. Though there are two OpportunityShare records - one with Full Access (Row Cause = Owner) and two - Read Only (Row Cause = Team).
I am not understanding as to how OpportunityShare with Access Level = Read Only is being considered instead of Opportunity Share with Access Level = Full ?
Thanks in advance.
I am creating Opporotunity and Opportunity Team Member using API. While creating Opportunity Team member, an OpportunityShare record is getting created with OpportunityAccessLevel - Read-Only to the Opportunity, which is breaking some of my dependent functionalities. Though there are two OpportunityShare records - one with Full Access (Row Cause = Owner) and two - Read Only (Row Cause = Team).
I am not understanding as to how OpportunityShare with Access Level = Read Only is being considered instead of Opportunity Share with Access Level = Full ?
Thanks in advance.
As for your above scenario
- Rowcause - Owner : This is giving Full Access on the opportunity record, for the record owner.
- Rowcause - Team : This is giving the Read Only access to the opportunity record, for all the users setup-ed in the opportunity team.
Need you open up access:you can do it by Apex, Manual, Profile/Role level.
Not sure what you are exactly looking for.
Thanks for your response.
Here is what I have done so far,
According to my understanding and document - https://developer.salesforce.com/docs/atlas.en-us.202.0.api.meta/api/sforce_api_objects_opportunityshare.htm?search_text=opportunityshare,
If an opportunity is shared in multiple ways with a user, you don’t always see multiple sharing records. If a user has access to an opportunity for one or more of the following RowCause values, the records in the OpportunityShare object are compressed into one record with the highest level of access.
The sharing table records that you have shared, the sharing row is for different user.
- Some User - Account ( Read-write - Owner of Account )
- Community User - Owner ( Read-write - Owner of Opportunity )
- Community User ( same as above ) - Sales Team ( Read-Only )
Get the userId's for the above highlighted users to analyze more closelyHere are OpportunityShare records with sample data,
Hope there is only one user with the name Pranav..