Open niteshlande opened 9 months ago
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.
This issue has been linked to a new work item: W-15045083
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);
}
}(orItemFields), ', ') +
' FROM OrderItem WHERE OrderId IN :orderIdSet WITH SECURITY_ENFORCED';
String query = 'SELECT ' + String.join(new List
return Database.query(String.escapeSingleQuotes(query)); }