+ Start a Discussion
Ankur Saini 9Ankur Saini 9 

Getting error when I send my code for security review : isDeletable()

User-added image
SandhyaSandhya (Salesforce Developers) 
Hi Ankur Saini,

Try to use the isAccessible() check before accessing data (for example performing a query)
{ ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.FATAL,’Insufficient access’));
return null; 
}else{ do your query  }
Please refer below link.


Hope this helps you!

If this helps you, please mark it as solved.

Thanks and Regards
Ankur Saini 9Ankur Saini 9
Hi Sandhya

I tried this code but again it gives code review error. 

Ankur Saini