简体   繁体   English

使用databasedotcom ruby​​ gem访问Salesforce时,如何获取特定用户(或帐户)的ActivityHistory

[英]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.

相关问题 如何使用Restforce gem在ruby on rails中获取与Salesforce客户对象的所有关联数据 - How to get all associated data with the salesforce account object in ruby on rails using restforce gem 在Rails中未为此组织启用REST API(使用databasedotcom gem的Salesforce API) - The REST API is not enabled for this Organization (Salesforce API using databasedotcom gem) in Rails 当用户已经登录时,如何使用Twitter gem和Omniauth gem获取用户的访问令牌? - How do I fetch the access token for a user using the Twitter gem and the Omniauth gem when the users is already logged in? 将 React 用作前端时,如何在 Ruby API 中访问用户的 Google 日历? - How do I get access User's Google Calendar in my Ruby API when using it with React as a Frontend? Salesforce REST API:Databasedotcom gem可上传附件 - Salesforce REST API: Databasedotcom gem to upload attachments 使用Databasedotcom-rails gem从RoR应用程序创建Salesforce自定义对象记录时出现NoMethodError - NoMethodError when creating a Salesforce custom object record from a RoR app with databasedotcom-rails gem Ruby Gem“Databasedotcom”同样的对象问题 - Ruby Gem “Databasedotcom” same object issue Salesforce Databasedotcom gem:查询不会返回正确的结果 - Salesforce databasedotcom gem: Query doesn't return right results 如何获得Rails中包含的已安装红宝石宝石? - How do I get an installed ruby gem included in Rails? 如何在Ruby on Rails中使用Evernote gem创建注释? - How do I create a note using the Evernote gem in Ruby on Rails?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM