You need to sign in to do that
Don't have an account?
ppat
OpportunityAccessLevel .. Read only through API ?
I am trying to add Opportunity Sales Team through Apex. Trigger works fine except "OpportunityAccessLevel" field.
Here is the error : Field is not writeable: OpportunityAccessLevel
If I insert the record without specifying the OpportunityAccessLevel = 'Read/Write' , default values is getting assigned as OpportunityAccessLevel = 'Read Only'. I need to assign value OpportunityAccessLevel = 'Read/Write' while adding sales team member.
Any workaround ?
Thanks
Pramod
Here is the error : Field is not writeable: OpportunityAccessLevel
If I insert the record without specifying the OpportunityAccessLevel = 'Read/Write' , default values is getting assigned as OpportunityAccessLevel = 'Read Only'. I need to assign value OpportunityAccessLevel = 'Read/Write' while adding sales team member.
Any workaround ?
Thanks
Pramod
When you add record into OpportunitySalesTeam , salesforce inserts corresponding record into "OpportunityShare" table with "OpportunityAccessLevel"='Read'
Add code for OpportunityShare table to update opportunityAccessLevel with value "Edit"
Hope this helps.
Pramod,
I have a similar requirement, and need to make a trigger for the Opportunity object, so that the sales reps can add themselves/others to the sales team. They are not the owners of the opportunity. Please share your code for the trigger, if possible.
Thanks!!
PM'd the logic.
-Pramod
I'm getting a FIELD_INTEGRITY_EXCEPTION for : RowCause (cannot update sharing row with this cause) when I'm trying to update the access field of OpportunityShare table with value "Edit". Any input to resolve this would be much appreciated.
Thanks,
Tara
Tara
Hi Tara,
Can you tell me what was the solution for your above comments?? Even I am getting the same Error.
"I'm getting a FIELD_INTEGRITY_EXCEPTION for : RowCause (cannot update sharing row with this cause) when I'm trying to update the access field of OpportunityShare table with value "Edit". "
Thanks in Advance.