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
Yishay Haspel 10Yishay Haspel 10 

Task.Who.Email not Queried while Contact.Email does

Hi,

did anyone had this issue?
System.debug(
[Select Subject, Description, WhatId, Who.Email, Owner.Name, Owner.Email, 
CC_REID__Last_Date_Reminded__c, ActivityDate 
				From Task 
 Where Id = '00T2400000Iq2PoEAJ'].Who
);
System.debug(
[Select Email 
From Contact
Where Id = '0032400000HWzHYAA1'
]
);

Outputs:
Name:{Id=0032400000HWzHYAA1}

(Contact:{Email=XXX@YYY.com, Id=0032400000HWzHYAA1})


Thanks,
Yishay