Hardcoded IDs in code

Overview

Record IDs change between environments. For this reason, any logic that uses hardcoded IDs will fail when deployed to a different Salesforce environment.

Business Impact

Decreased operational efficiency, increased potential for human error, delayed time-to-market, and decreased employee satisfaction.

Resources

Very Frequent

Incidence

How common is this issue?
41%27%
arrow down13%
lower

Exposure

How long do organizations remain exposed before fixing the problem?
1 year7 months
arrow down55%
shorter
BenchmarkWith Clayton

Frameworks

EasyiconAutomatediconEfficiencyiconOperational LogiciconA05:2021 – Security Misconfigurationicon