Avoid Sosl calls within loops
Impact area
Manageability
Severity
Medium
Affected element
Apex Class
Rule ID
SF-0042
Impact
Sosl (Salesforce object search language) queries within loops can cause governor limit exceptions.
Remediation
Remove the Sosl statements from within the loop.
Time to fix
60 min