Skip to main content
I am building a rule off the Activity History object from Salesforce. However, I continually get an error message saying that the query is not valid. I have tried quite a few fields and the same error appears. I have now just tried to Preview, with just the "Subject" in the Show section and filtered to 1 account.











Do any queries work on the Activity History object? I don't think I have built a rule off of this object previously, but I have no idea what this error means and how to fix this! Help would be appreciated if anyone has seen this before.



Hi Manmeet - you'll need to reference the object itself for what you're looking to report on (probably task or event). Activity history cannot be queried in Gainsight.




Oh thanks for the quick reply, that's what I figured but wasn't sure! Thanks for letting me know, will use the Task object instead.




Adding to Spencer's comment ,





"Activity History" is a related list in SFDC and it's a Salesforce limitation that we cannot fire a select query on these items.




Reply