You need to sign in to do that
Don't have an account?
Jai
Permissions should be checked before accessing resource {0}.
below heighleted code scan issue pls help me on this.
public static void continueCreateTicket(List<Case> caseList) {
if(Schema.sObjectType.Customer_Support_Internal_Request__c.isAccessible()) {
final List<Customer_Support_Internal_Request__c> newCsir;
newCsir = new List<Customer_Support_Internal_Request__c>();
Customer_Support_Internal_Request__c csir;
for(Case caseRec : caseList) {
csir = new Customer_Support_Internal_Request__c();
csir = doGetCSIR(caseRec,csirEarlyId);
if(csir != null) {
newCsir.add(csir);
}
}
if(!newCsir.isEmpty() && Customer_Support_Internal_Request__c.sObjectType.getDescribe().isAccessible()==true) {
insert newCsir;
}
}
Thanks!!
public static void continueCreateTicket(List<Case> caseList) {
if(Schema.sObjectType.Customer_Support_Internal_Request__c.isAccessible()) {
final List<Customer_Support_Internal_Request__c> newCsir;
newCsir = new List<Customer_Support_Internal_Request__c>();
Customer_Support_Internal_Request__c csir;
for(Case caseRec : caseList) {
csir = new Customer_Support_Internal_Request__c();
csir = doGetCSIR(caseRec,csirEarlyId);
if(csir != null) {
newCsir.add(csir);
}
}
if(!newCsir.isEmpty() && Customer_Support_Internal_Request__c.sObjectType.getDescribe().isAccessible()==true) {
insert newCsir;
}
}
Thanks!!
If you find this answer helpful, Please mark it as the best answer.