title: Getting list of open Activities in salesforce
body: <p>i have to retrieve list of OpenActivities related to a custom object Activities are enabled for custom object .for getting list i am using query like this</p>
  
  <pre><code>public List&lt;OpenActivity&gt; getActivity1(){
  
  return [SELECT Subject from OpenActivities Where WhatId= :ApexPages.currentPage().getParameters().get('id') ];
  
  }
  </code></pre>
  
  <p>when i save it it is giving me error</p>
  
  <pre><code>Error: Compile Error: sObject type 'OpenActivities' is not supported. If you are attempting to use a custom object, be sure to append the '__c' after the entity name. Please reference your WSDL or the describe call for the appropriate names. at line 44 column 8
  </code></pre>
  
  <p>can any one please tell me how to retrieve list of open Activities in salesforce which is related to particular record object??</p>