function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Chatter Limit Functions

what are the chatter limits and are there governor limit functions to retreive them?


Example is the number of entity subscriber limits of 500. Are there limit functions to get the max limit for a user and their current entity subscription count


On the limits to get the number of entities a user is subscribed to, the same limits would apply as any other transaction context since, it doesnt look like the system Limit constructor does not have something like a getEntitySubscriptionLimit() method based on what I can see.

So, what you would probably have to do is, use a soql query against the EntitySubscription Sobject into an array and then use a size() method on the array in an if() statement to pre-qualify your transaction or for() loop. There is a gotcha though, the subscription limit can change as users can call Salesforce to have it raised on a case-by-case basis so, caution when using this workaround.


This is a really good idea though, have you thought of posting it to the idea exchange?