+ Start a Discussion
Vyacheslav Ramazanov 6Vyacheslav Ramazanov 6 

Email & Phone fields on Task object

As I know there are three types of object fields in the salesforce: standard fields (text, formula, number ets.), lookups and generic fields (like WhatId and WhoId on Task). But yesterday I was asked about the Email and Phone fields on the Task object (setup -> custumize -> activities) and had troubles with the answer. I don't able to query them. Also one documentation (https://help.salesforce.com/HTViewHelpDoc?id=task_fields.htm&language=en_US) says they are exist, another says they aren't (https://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_task.htm).

Where is the truth? :)

RamuRamu (Salesforce Developers) 
Hi Vyacheslav, the truth is in both these articles though it is confusing. What I noticed is that when we review the fields under Task object definition through UI, you would find the email and phone fields. However, these fields are not editable and are auto populated from the associated contact or lead record. On the other hand, if you try to use some api tools like workbench and try to query the Tasks object, you would not find these fields available. This is right as per the api documentation and the first point is right as per the documentation at the link https://help.salesforce.com/HTViewHelpDoc?id=task_fields.htm&language=en_US.

Bottom line as per my research is that the phone and email fields are not the integral part of task object and are special fields as they pull the information of Phone and Email from either Contact or Lead.