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
CageMMACageMMA 

SOQL Query Not Working..Trying to Get Mailing Info of Who from Task...

Hi My SOQL QUERY IS not working what is wrong with it:

SELECT Who.Id, Who.Name, Who.MailingStreet, Who.Phone, Who.Email, Who.Title FROM Task LIMIT 20

 Who.MailingStreet ==> is giving me an error. Is there an easier way to get Contact info from Task Object.

Thanks

 

 

Imran MohammedImran Mohammed

If who.id is related to Contact object, then just get the who.id and then query the Contact object based on who.id.

Try the above and see if you can succeed.