收藏riyaz I 提问于 #Apex2017年2月22日 08:39duplicate value found: <unknown> duplicates value on record with id: <unknown>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 个回答排序按日期排序按最有帮助排序按日期排序加载更多评论...Rohit B (Acxiom)2017年2月22日 11:43Could you please explain in detail what are you getting? Your code is also not making much sense.添加评论撰写回答...粗体斜体下划线删除线项目符号列表编号列表添加链接代码块插入图像附加文件链接 URL取消保存0/9000回复
Rohit B (Acxiom)2017年2月22日 11:43Could you please explain in detail what are you getting? Your code is also not making much sense.