0

I am getting this error while changing the owner of a record by the selected user. So basically I don't want to change an owner or show a custom error message if the user do not have access or which may throw this exception. SO can anyone suggest how to check this in apex?

1
  • It seems like the user you are transferring the record to, does not have read permission on the object. – Rahul Gawale Jun 23 '20 at 6:24
0

Salesforce lets you check record access via apex. Some good discussion is here but do check source docs as well Can I find out if the current user has access to a record without querying?

3

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.