Salesforce Decode
Salesforcedecode
Security & Sharing questionsQuestion 116 of 120
Security & SharingAdvancedCode Reviewsecuritywithout-sharingsecure-apex

How do you safely use "without sharing" in a utility class?

Scenario

A utility must count all records for a dashboard regardless of user.

Answer it out loud first

Serious prep means attempting before reading. Take two minutes to structure your answer, then compare.