[英]When using databasedotcom ruby gem to access salesforce, how do I get the ActivityHistory for a particular User (or Account)
For most sobjects, they support queries such as find_by_... etc. However, 对于大多数对象,它们支持诸如find_by _...之类的查询。但是,
client.materialize("ActivityHistory")
returns a class that does not support query. 返回不支持查询的类。 When I try to run ActivityHistory.query("anything")
当我尝试运行ActivityHistory.query(“ anything”)时
I get... 我知道了
Databasedotcom::SalesForceError: entity type ActivityHistory does not support query Databasedotcom :: SalesForceError:实体类型ActivityHistory不支持查询
I'm trying to extract the ActivityHistory for the last 30 days, and find out the account it lies in, and the user that created it. 我正在尝试提取最近30天的ActivityHistory,并找出它所在的帐户以及创建它的用户。
Help, please! 请帮助!
I know this is late, putting it here for future reference. 我知道这很晚了,请把它放在这里以备将来参考。
Unfortunately the ActivtyHistory table is not directly accessible, it has to be queried through a relationship eg Account. 不幸的是,不能直接访问ActivtyHistory表,必须通过诸如帐户之类的关系来查询它。 For more info.. https://salesforce.stackexchange.com/questions/8327/accessing-email-sent-in-activity-history-via-api
有关更多信息.. https://salesforce.stackexchange.com/questions/8327/accessing-email-sent-in-activity-history-via-api
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.