function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
if(!Schema.sObjectType.Job_Status__c.isAccessible()) { ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.FATAL,’Insufficient access’)); return null; }else{ do your query }
Try to use the isAccessible() check before accessing data (for example performing a 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
I tried this code but again it gives code review error.
Thanks
Ankur Saini