Hi Anutej, when I'm trying to delete the AccountShare through Apex Trigger, getting the following error, could anyone please suggest to me how to resolve this issue...Thanks
So I tried checking the error and in the link- https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_calls_concepts_core_data_objects.htm
it states as SHARE_NEEDED_FOR_CHILD_OWNER happens If a parent record has a child record that needs a sharing rule, you can’t delete the sharing rule for the parent record.
Can you try checking if you have all the necessary permissions.
Can you elaborate the issue so as to understand the issue clearly and find a solution to your problem.
Regards,
Anutej
when I'm trying to delete the AccountShare through Apex Trigger, getting the following error, could anyone please suggest to me how to resolve this issue...Thanks
it states as SHARE_NEEDED_FOR_CHILD_OWNER
happens If a parent record has a child record that needs a sharing rule, you can’t delete the sharing rule for the parent record.
Can you try checking if you have all the necessary permissions.