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
Rupali PophaliyaRupali Pophaliya 

Workaround - Managed package using chatter to be installed in chatter disabled organizations

Hi,

We have a managed package that makes use of chatter feed object in one of our apex class.
We would like to know if it is possible to develop a managed package that leverages Chatter but can be installed in organisations
that don't have chatter enabled?

In case if there is no such standard way to achieve this, we have thought of a work around. It is to release a later version with all mention of chatter stripped out of apex.
Then later again putting the chatter code back to our apex.

We would like to know if there are chances of any problem with this work around. Or if there are any better work arounds?

Thanks,
Rupali
ShashForceShashForce
Hi Rupali,

One option is to strip all chatter functionality in your base package and add them in an extension package.
Another option would be to make your code dynamic and check for chatter being enabled or not. Please see if these links help:
http://salesforce.stackexchange.com/questions/34253/managed-package-with-chatter-feeditem-on-env-where-chatter-is-disabled
http://salesforce.stackexchange.com/questions/32144/missing-organization-feature-chatter

If this answers your question, please mark this as the Best Answer for this post, so that others can benefit from this post.

Thanks,
Shashank