+ Start a Discussion
Harshal Kulkarni 15Harshal Kulkarni 15 

entity type ActivityHistory does not support query

Hi All,

When I have tried to execute the query as 
        "Select Id, Subject from ActivityHistory"

in 'Query Editor' from the developer console in the context of 'System Administrator'.

After executing the query, I got the error as  "entity type ActivityHistory does not support query"

Can anybody will help me how to solve this error?

Thanks 
Meghna Vijay 7Meghna Vijay 7
Hi Harshal,

It is not queryable . Please go through this link:-
https://getsatisfaction.com/dbamp/topics/how_to_pull_activityhistory

Thanks

 
Parmanand PathakParmanand Pathak
Directly it is not possible but through subquery you can do this - 
Select Name, (Select Subject,ActivityType from ActivityHistories) from contact

Thanks,
Parmanand Pathak