You need to sign in to do that
Don't have an account?
Sam Satterfield
After Insert Trigger, No Errors, Not Running.
The Trigger is supposed to run after another trigger has created the record. When the record is inserted, the trigger is called; but nothing happens. The trigger gives no errors and I have no idea why it doesn't work. Any help is greatly appreciated.
trigger TAMOCon_AssociatedChildUpdate on Topline_Account_Management__c (after insert) { for (Topline_Account_Management__c Tamo : Trigger.New) { List<contact> conToUpdate = new list <Contact>(); for(contact Con : [select Id,D_T_TAMO_ID__c,LLC_AgreementNew__c from Contact where D_T_TAMO_ID__c=:TAMO.Topline_Account_Management_Record_ID__c]) { Con.LLC_AgreementNew__c = 'Signed'; conToUpdate.ADD(Con); update conToUpdate; }}}
All Answers
Create debug an dcheck the debug statement is debug log .I have optimised the code ,Removed query and DML from for loop .
Try and let me know if it helps .
Thanks
Manoj
Please find the debug below: