Avoid Using Function SObjectType.getDescribe In FLS Checks

< 1 min read

Impact area

Performance

Severity

Low

Affected element

Apex Class

Rule ID #

SF-0199

Impact #

From API version 44 the use of the function describeSObject() impacts the performance.

Remediation #

For FLS checks use the option SObjectDescribeOptions.DEFERRED in the call to load lazily the information.

Time to fix #

5 min

Updated on March 21, 2025
Was it helpful ?