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
When I Scan My VS Code Local Code with Salesforce Code Analyzer using the Below Command
sf scanner run dfa --format=csv --outfile=CodeAnalyzerDFA.csv --target="./" --projectdir="./" --category="Security"
I Got Salesforce Graph Engine couldn't resolve the parameter passed to [READ] operation with field(s) [Unknown]. Could you confirm that this operation has the necessary FLS checks? Error On Queries Method,
But In Checkmarks Reports it is not showing any error.
I am Scanning this Report For a salesforce Security Check for App Exchange.
My Queries Method:
@AuraEnabled(cacheable=true)
public static List getOrderItemRelatedToOrder(List newOrders) {
Set orderIdSet = new Set();
Set orItemFields = Constants.ORDITM_FIELD_LIST;
for(Order orderRecord : newOrders) {
if (orderRecord.Id != null) {
orderIdSet.add(orderRecord.Id);
}
}
String query =
'SELECT ' +
String.join(new List(orItemFields), ', ') +
' FROM OrderItem WHERE OrderId IN :orderIdSet WITH SECURITY_ENFORCED';
return Database.query(String.escapeSingleQuotes(query));
}
The text was updated successfully, but these errors were encountered:
Hi @niteshlande - thanks for reporting. Graph Engine has a known issue where it can't parse String objects constructed with + operator. We'll keep this open and report back when we prioritize and fix this issue.
When I Scan My VS Code Local Code with Salesforce Code Analyzer using the Below Command
sf scanner run dfa --format=csv --outfile=CodeAnalyzerDFA.csv --target="./" --projectdir="./" --category="Security"
I Got Salesforce Graph Engine couldn't resolve the parameter passed to [READ] operation with field(s) [Unknown]. Could you confirm that this operation has the necessary FLS checks? Error On Queries Method,
But In Checkmarks Reports it is not showing any error.
I am Scanning this Report For a salesforce Security Check for App Exchange.
My Queries Method:
@AuraEnabled(cacheable=true)
public static List getOrderItemRelatedToOrder(List newOrders) {
Set orderIdSet = new Set();
Set orItemFields = Constants.ORDITM_FIELD_LIST;
for(Order orderRecord : newOrders) {
if (orderRecord.Id != null) {
orderIdSet.add(orderRecord.Id);
}
}
String query =
'SELECT ' +
String.join(new List(orItemFields), ', ') +
' FROM OrderItem WHERE OrderId IN :orderIdSet WITH SECURITY_ENFORCED';
return Database.query(String.escapeSingleQuotes(query));
}
The text was updated successfully, but these errors were encountered: