You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You may find return Database.query() rather than assigning to variable may cause this. I would expect any SOQL or DML applying USER_MODE not to hit ApexFlsViolationRule
ApexFlsViolationRule is flagged on this example code
public static List exampleMethod(String exampleParam) {
String dynamicQuery = 'SOME dynamic Query' + ' WHERE Name = :exampleParam';
return Database.query(String.escapeSingleQuotes(dynamicQuery), AccessLevel.USER_MODE);
}
However, if you do queryWithBinds and pass in a Map with exampleParam, ApexFlsViolationRule is not flagged.
The text was updated successfully, but these errors were encountered: