Skip to content

Instantly share code, notes, and snippets.

jeffdonthemic / apex-crud-fls.txt
Last active Mar 30, 2021
Simple Apex Controller with CRUD and FLS
View apex-crud-fls.txt
This simple controller (without CRUD and FLS) ...
public with sharing class AccountController {
public static List<Account> findAll() {
return [SELECT id, name, Location__Latitude__s, Location__Longitude__s
FROM Account
WHERE Location__Latitude__s != NULL AND Location__Longitude__s != NULL
LIMIT 50];