Skip to main content
pooja biswas a posé une question dans #Apex
Hi

Please help me clear the following concept.

a) Trying to understand what is account share and opportunity share   sobjects.

How they related to account and opportuntity

In what business case scenario do we use them

what is RowCause field? How does it affect Master-detail relationship?

b) How to resolve  " Field is not writeable: " error in apex?

  

Thanks

Pooja 
6 réponses
  1. 29 déc. 2016, 13:31
    It's incorrect to say that rowcasue field is non editable.

    This field specifies the reason that this sharing entry exists. You can only write to this field when its value is either omitted or set to Manual (default). You can create a value for this field in API versions 32.0 and later with the correct organization-wide sharing settings.

    Valid values include:

    Manual—The User or Group has access because a User with “All” access manually shared the Account with the user or group.

    • ImplicitParent—The User or Group has access because they’re the owner of or have sharing access to records related to the account, such as opportunities, cases, contacts, contracts, or orders.
    • Owner—The User is the owner of the Account
    • Team—The User or Group has team access (is an AccountTeamMember).
    • Rule—The User or Group has access via an Account sharing rule.
0/9000