Skip to main content
harshal kulkarni 님이 #Apex에 질문했습니다
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 
답변 1개
  1. 2019년 1월 29일 오후 1:31

    Directly it is not possible but through subquery you can do this - 

    Select Name, (Select Subject,ActivityType from ActivityHistories) from contact

    Thanks,

    Parmanand Pathak
0/9000