2 réponses
Hi Blair,You can use the below trigger to update the checkbox on custom object. Is that task in any way related to the custom object?trigger TaskTrigger on Task (after update) { List<Custom_object__c> CustInsList = new List<Custom_object__c>(); for(Task t : Trigger.New){ if(t.Status == 'Complete' && t.Status != Trigger.oldMap.get(t.Id).Status){ Custom_object__c c = new Custom_object__c(); c.checkbox = true; CustInsList.add(c); } } if(!CustInsList.isEmpty()){ try{ update CustInsList; } Catch(DMLException de){ System.debug('Exception Occurred on insert of Custom object: '+ de); } }}ThanksKumar