Quantcast
Viewing all articles
Browse latest Browse all 5

How to count Chatter posts in SOQL?

Is there a way to count chatter posts for a specific record? I tried simple query:

SELECT COUNT()
FROM FeedItem
WHERE Type = 'TextPost'

But this doesn't work in Apex since it throws an error Implementation restriction: Aggregate queries are not allowed


Viewing all articles
Browse latest Browse all 5

Trending Articles