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

Update Account Share records


can we able to update the Account Share records with row cause "Owner" and "Rule"?

Vatsal KothariVatsal Kothari

Rowcause is editable only for custom objects not for standard objects.

All you can do is, you can create a share record in the accountshare table however you can't set value to the row cause.

Salesforce standard Share objects like AccountShare,OpportunityShare...etc will not have write access on RowCause field.

If this solves your problem, kindly mark it as the best answer.

Gaurav NirwalGaurav Nirwal
There is no way to edit a record owned by an inactive/terminated user, this presents a huge problem when performing any kind of Mass Update. The only solution is to reactivate the user id, update the records, and then deactivate the user id (methinks that might be just a wee bit of a Security Breach). This is further complicated if the records are owned by multiple inactive/terminated users, because unless you have unused licenses available you must temporarily disable active users, and "swap" their licenses with the inactive/terminated users
Gaurav NirwalGaurav Nirwal
You can try this link

For the record, my org is hitting the same wall when trying to merge old contacts: cases owned by the "victim" contact can't be moved to the "survivor" contact if the case owner is an inactive user