Skip to content

Enforcing CRUD and FLS in Apex

Salesforce apps runs under two contexts one is user context and other is system context. User context is the default context that we see when you’re interacting with the UI in Salesforce, In user context, the current user’s permissions, field-level security, and sharing rules are taken into account as we browse the UI or execute code. Application executes in user context when: A user browses the application via the standard Salesforce-provided UI. A user views a Visual force page that uses a standard controller. A user views a Visual force… Read more Enforcing CRUD and FLS in Apex