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
rajesh kamath 16rajesh kamath 16 

Sharing issue

On creation of a Partner Community User from contact we are creating a account share record for contact's related account.
Also, case share record gets created automatically due to the created account share.
While updating contact's related account with another account, the account share which we have created gets deleted. Why?
We need to delete the case share record as well. But the case share record is not getting deleted. Please let us know the possible solutions.


It will be helpful if someoen can help
Best Answer chosen by rajesh kamath 16
SonamSonam (Salesforce Developers) 
Hi Rajesh,

I believe its the association of the contact with the respective account and that the contact can have at one time only a single account association.

I think the case is directly associated with the contact and not the account which might be the reason of its non deletion.