我必须检索与自定义对象相关的 OpenActivities 列表 为自定义对象启用了活动。为了获取列表,我正在使用这样的查询
public List<OpenActivity> getActivity1(){
return [SELECT Subject from OpenActivities Where WhatId= :ApexPages.currentPage().getParameters().get('id') ];
}
当我保存它时,它给了我错误
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
谁能告诉我如何在销售人员中检索与特定记录对象相关的开放活动列表?