function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
naresh shettynaresh shetty 

Who ID for task is showing null in task trigger

I have requirment to create task from some other process on lead object .. I have a logic implimented in after trigger on task to find the Who id of the taks and find if it related to Lead than increament the coutner in lead object. But some reason I am not getting Whoid in task after insert trigger .. in the debug log its shoing null .. 

{Id=00T0k00000308vcEAA, RecordTypeId=01228000000nbeAAAQ, WhoId=null, WhatId=null, WhoCount=0, WhatCount=0, Subject=call [610386513500]2017-08-17 11:23:13, 
Shiva RajendranShiva Rajendran
Hi Naresh,
Could you share your trigger code? I hope it is after trigger , the issue can be because of not specifying doing dml operation after the change on that record.

Thanks and Regards,
Shiva RV