You need to sign in to do that
Don't have an account?
Sahil Bansal 7
Security Review CRUD Issue
Hi Folks,
I ran checkmarx security scanner on managed package and came up with following CRUD issues : Query: CRUD Delete
As per the salesforce documentation I have already applied the isAccessible() and isDeletable() checks as follows:
Any help will be highly appreciated
Thanks!
I ran checkmarx security scanner on managed package and came up with following CRUD issues : Query: CRUD Delete
database.delete(vPlays);
As per the salesforce documentation I have already applied the isAccessible() and isDeletable() checks as follows:
List<vPlayBookRules__c> vPlays = new List<vPlayBookRules__c>(); Id RuleId = editvPlayBook.Id; if(Schema.sObjectType.vPlayBookRules__c.isAccessible()){ vPlays = [Select Id from vPlayBookRules__c where ID =: RuleId LIMIT 1]; } if(vPlays.size() > 0){ if (Schema.sObjectType.vPlayBookRules__c.isAccessible() && Schema.sObjectType.vPlayBookRules__c.isDeletable()) { database.delete(vPlays); } }
Any help will be highly appreciated
Thanks!
Please check with below link from stack exchange community with similar issue which might help you to accelerate with above requirement.
- http://stackoverflow.com/questions/40221083/crud-delete-salesforce-security-issue
Please mark this as solved if it's resolved.Regards,
Nagendra