+ 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)
 
if(!Schema.sObjectType.Job_Status__c.isAccessible())
{ ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.FATAL,’Insufficient access’));
return null; 
}else{ do your query  }
Please refer below link.

https://www.forcetalks.com/blog/stuck-on-the-salesforce-security-review-process/

Hope this helps you!

If this helps you, please mark it as solved.

Thanks and Regards
Sandhya
Ankur Saini 9Ankur Saini 9
Hi Sandhya

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

Thanks 
Ankur Saini