Avoid Using DML Operations In Apex Class Constructor/Init Method

Impact Area

Security

Severity

High

Affected Element

Apex Class

Rule ID #

SF-0023

Impact #

Using DML statements in constructors can result in data modification just by accessing a page.

Remediation #

Remove DML code from constructors / init methods.

Time to fix #

60 min

Was it helpful ?

THE AI CODE GOVERNANCE BRIEF

Sign up for new updates!