Hot answers tagged

1

You are missing a WHERE filter for the records in the trigger context trigger myTrigger on Contact(after update) { for(Contact cont : [SELECT id, Account.My_Field__c FROM Contact WHERE Id IN :Trigger.newMap.keySet()]) { // this always returns null system.debug('account.my_field__c value: ' + ...


Only top voted, non community-wiki answers of a minimum length are eligible