You need to sign in to do that
Don't have an account?
Luca Debellis
Help whit class test of Trigger ?
Trigger is :
trigger TaskTrigger on Task (after update) {
Map<Id,Id> ownerIds = new Map<Id,Id>();
list <Lead> LeadList = new list <lead>();
for(Task t:Trigger.new){
Task TOld = trigger.oldMap.get(T.Id);
String id = String.valueOf(t.WhoId);
if(t.OwnerId != Told.Ownerid && id.startsWith('00Q'))
LeadList.add( new Lead(id = id, ownerid=t.OwnerId));
}
update LeadList;
}
Try the below test class:
Thanks,
Maharajan.C
All Answers
kindly find the solution. If you find your Solution than mark as this as a best answer.
Thanks and Regards
Suraj Tripathi.
Try the below test class:
Thanks,
Maharajan.C