收藏Harsh Saini (Pwc India) 提问于 #Apex2018年2月5日 14:00Trigger to insert data from one object to another.My code is not working , can anyone tell me what's the mistake in my code.trigger trigger52 on India__c (after insert) { list<san_francisco__c> con =new list<san_francisco__c>(); for(India__c h : trigger.new){ san_francisco__c s = new san_francisco__c(); s.Name=h.Name; s.Company__c=h.Company__c; s.Mobile__c=h.Mobile__c; s.Email__c=h.Email__c; con.add(s); } insert con;}16 个回答排序按日期排序按最有帮助排序按日期排序加载更多评论...已采纳的回答Sitanshu Tripathi (SFDC4STUDENTS)2018年2月9日 10:57Dear Harsh,I'm telling you only Way from this link.Create Test class from yourself.https://sitanshusfdc.blogspot.in/2018/02/apex-trigger-with-helper-class-and-test.html添加评论撰写回答...粗体斜体下划线删除线项目符号列表编号列表添加链接代码块插入图像附加文件链接 URL取消保存0/9000回复
已采纳的回答Sitanshu Tripathi (SFDC4STUDENTS)2018年2月9日 10:57Dear Harsh,I'm telling you only Way from this link.Create Test class from yourself.https://sitanshusfdc.blogspot.in/2018/02/apex-trigger-with-helper-class-and-test.html