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
Rabbani sayyed 8Rabbani sayyed 8 

Scenario: I hav 1 obj on that i am having all read,write,edit,delete permissions when am trying to delete that raises an error.Why?

Scenario: I hav 1 obj on that i am having all read,write,edit,delete permissions when am trying to delete that raises an error.Why?
PratikPratik (Salesforce Developers) 
Hi Rabbani,

What error you are facing whicle deleting?

Thanks,
Pratik
Rabbani sayyed 8Rabbani sayyed 8
Hi pratik,

I am getting the record can not be deleted error .

Regards
Rabbani
PratikPratik (Salesforce Developers) 
Hi Rabbani,

Do you have full access to that record? you can check it, go to that record->click on Sharing button-> Click on Expand List button and check what kind of access you have.

Thanks,
Pratik 
Bertrand PolusBertrand Polus
Hi,
You are probably not the owner on the record and since you don't have the permission "Modify All", you can not delete it.
If you have the "Modify All" permission and still can not delete it, perhaps you have a trigger on the object forbidding you to delete the record.