• Raymond Mortu
  • NEWBIE
  • 10 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 4
    Replies
Hi Guys, i got this error validating my Trigger

System.ListException: List index out of bounds: 1  Stack Trace: Class.CaseUtility.updateExpiredPoaLinks: line 582, column 1 Class.CaseUtilty_test.testUpdateExpiredPoaLinks: line 192, column

code below:
trigger t1 on Case (before insert, before update) {

 Group q = [SELECT Id FROM Group WHERE Name ='NCT queue' AND Type = 'Queue']; 

Contact con = new Contact(); 

for(Case cas : Trigger.New){

         if(cas.Court_Process__c == 'NCT'){

        cas.OwnerId = q.Id; 
    
       }
   }

 NCT__c nctNew = new NCT__c(Full_Name__c = con.cm1__Full_Name__c ); 

  insert nctNew; 
}


need help
Hi, I'm new to triggers.
can someone help me with the below trigger.

NCT Object
  1. if field (Process 8a case) Court process field is NCT 
  2. Change case/query owner to NCT queue
  3. Open an NCT object
  4. Complete client full name in NCT object from case field

this is the where the  field is query owner(owner) located
query owner(owner) which is a lookup field.
should be Queue (1) and the next field should be NCT queque (2)  Below:
User-added image

This is what I did to change the Owner to NCT queue and got an ErrorUser-added image
 
Hi Guys, i got this error validating my Trigger

System.ListException: List index out of bounds: 1  Stack Trace: Class.CaseUtility.updateExpiredPoaLinks: line 582, column 1 Class.CaseUtilty_test.testUpdateExpiredPoaLinks: line 192, column

code below:
trigger t1 on Case (before insert, before update) {

 Group q = [SELECT Id FROM Group WHERE Name ='NCT queue' AND Type = 'Queue']; 

Contact con = new Contact(); 

for(Case cas : Trigger.New){

         if(cas.Court_Process__c == 'NCT'){

        cas.OwnerId = q.Id; 
    
       }
   }

 NCT__c nctNew = new NCT__c(Full_Name__c = con.cm1__Full_Name__c ); 

  insert nctNew; 
}


need help
Hi, I'm new to triggers.
can someone help me with the below trigger.

NCT Object
  1. if field (Process 8a case) Court process field is NCT 
  2. Change case/query owner to NCT queue
  3. Open an NCT object
  4. Complete client full name in NCT object from case field

this is the where the  field is query owner(owner) located
query owner(owner) which is a lookup field.
should be Queue (1) and the next field should be NCT queque (2)  Below:
User-added image

This is what I did to change the Owner to NCT queue and got an ErrorUser-added image