You need to sign in to do that
Don't have an account?
Luvara
Updating Parent Object from a Task
Hi all, I'm trying to update an Account's date field (Last Referenced) whenever a task is saved with a certain record type (012000000008llU).
The systems says it's valid, but doesn't seem to be working. Can anyone provide some guidance?
Thanks,
Chris
The systems says it's valid, but doesn't seem to be working. Can anyone provide some guidance?
Code:
trigger UpdateAccountLastRef on Task (after update) { for (Task t:System.Trigger.new) {if (t.RecordTypeId=='012000000008llU') { Account acc = new Account(Id=t.AccountId, Last_Referenced__c=System.today());update acc; } }}
Thanks,
Chris
Thanks,
Chris