Skip to main content
riyaz I ha fatto una domanda in #Apex
Hi,

i am getting this error while compering object

           public static void beforeinsrtt(list<lead>lrd){

           

           list<lead> rt=[select lastname ,email from lead];

         

           for(lead x:lrd){

             for(lead r:rt){

              //if(lrd.size()>0){

                  if(x.LastName==r.lastname){

                      x.adderror('LastNameduplicate');

                      }

                      if(x.email==r.email){

                         x.adderror('EmailDiplicate');

                         }

                           if(x.Phone!=null||x.Phone!=''){

                        integer count=0;

                          x.Score__c= count+10;

                       

                }}

                   

           }       

                    

        }
2 risposte
  1. 22 feb 2017, 11:43
    Could you please explain in detail what are you getting? Your code is also not making much sense.
0/9000