New answers tagged

2

The new, modern way to do this is Security.stripInaccessible. This automatically checks all field level access, record level access, and object level access. It takes all the guesswork out of using describes and other security checks. You can still use WITH SECURITY_ENFORCED if you want an all-or-nothing approach, but Security.stripInaccessible will give you ...


4

I would expect this behavior in the general sense. The settings are loaded in memory, then calling get or getAll returns that cached data. However, being undocumented, I'd avoid specifically depending on this behavior and being more explicit: public class QuiterTokenBearer { public static Quiter_Token__c token = Quiter_Token__c.getValues('Quiter Token'); ...


Top 50 recent answers are included