You need to sign in to do that
Don't have an account?
Varun Chopra
Security review checks
Hi,
Is it mandatory to use isCreateable(), isAccessible(), isUpdateable() and isDeleteable() in apex code?
As in my case I have more than 100 fields in an sObject and to get all fileds data I have check isAccessible() on all fields. This does not seem to be the correct way to do this.
Can you please let me know how to do this efficienly or provide a dowumentation on this?
Regards
Abhishek
Is it mandatory to use isCreateable(), isAccessible(), isUpdateable() and isDeleteable() in apex code?
As in my case I have more than 100 fields in an sObject and to get all fileds data I have check isAccessible() on all fields. This does not seem to be the correct way to do this.
Can you please let me know how to do this efficienly or provide a dowumentation on this?
Regards
Abhishek
Apex generally runs in system context except for "Execute Anonymous", so the current user's permissions, field-level security, and sharing rules aren’t taken into account during code execution.
Because these rules aren't enforced, developers who use Apex must take care that they don't inadvertently expose sensitive data that would normally be hidden from users by user permissions, field-level security, or organization-wide defaults.
CRUD operations are at the core of many database-driven applications. With databases of tens or hundreds of tables, a good CRUD component is the key for user satisfaction and developer productivity.
Hope this information helps. Kindly mark it as best answer if the information is helpful.
https://developer.salesforce.com/page/Enforcing_CRUD_and_FLS
Hope it helps.