I am trying to delete a record using the recordID:
final Boolean doNotAllowPartialSuccess = true; database.delete(recordId, doNotAllowPartialSuccess);
I am getting this error:
DML statement found null SObject at position 0
It's being deleted by a
Customer Community Login User who has READ, CREATE, EDIT and DELETE permissions on the object.
I know the record exists.
- What am I doing wrong?
- How can I fix it?