If we query type field


It will thorough the error as "No such type of column 'Type' on entity 'Task'".

But if we see in the App Setup->Customize->Activities->Task Fields

We will find 'type' field as picklist

2 Answers 2


Check field level security settings to make sure its not being hidden.

  • Yes,you are right but why it is not enabled by default
    – Ugesh Gali
    Commented Apr 19, 2013 at 4:54
  • @Superfell, I actually find this contradictory to what docs suggest. As per docs Apex generally runs in system context; that is, the current user's permissions, field-level security, and sharing rules aren’t taken into account during code execution. If we use "with sharing", still in that case as well as per docs Enforcing sharing rules by using the with sharing keyword doesn’t enforce the user's permissions and field-level security. Apex code always has access to all fields and objects in an organization, ensuring that code won’t fail to run because of hidden fields or objects for a user. Commented Apr 19, 2013 at 5:30
  • So why would the Type field not be accessible in the query? Am i thinking too much or is there any reason to the field not being accessible? Commented Apr 19, 2013 at 5:31
  • 1
    that only applies to triggers.
    – superfell
    Commented Apr 20, 2013 at 2:58

I know it seems crazy but we can't report on the std field Type of the Activities/Task. So only WorkAround is by creating a custom Type field to use it in reports.

ref. https://help.salesforce.com/s/articleView?id=000394194&type=1

  • Welcome to Salesforce SE! Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference.
    – identigral
    Commented Feb 26 at 18:44

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .