[SalesForce] Query on Task.Phone

It looks like querying Task 'phone' is NOT supported. Can anyone confirm?

I can get Owner.Phone, but not read the phone field itself.

Acc. to this doc:
Phone Phone number of the contact or lead associated with the task. This field is automatically filled in with the value from the corresponding contact or lead record.

  • Perhaps because it can't be queried because of the way sf is indexing it?

Please halp.

Best Answer

You might try using the WhoId's relationship (Who.) to get to it.

SELECT Id, Who.Phone FROM Task