We created a package that uses chatter functionality. One of our users is not using chatter and disabled in their org so our package is throwing an error "Missing Organization Feature: Chatter". User is not willing to enable chatter.
Is there a way that we can write some condition if chatter is enabled do this and if not do this.
I am already checking id the chatter is enabled using the below snippet
Schema.DescribeSObjectResult R = CSTest__c.SObjectType.getDescribe();
return R.isFeedEnabled();
In visualforce page
<chatter:feedWithFollowers entityId="{!testIdChatter}" id="chatterId" />
Is there away that we can write the functionality if the chatter is not enabled do some other stuff.
Best Answer
Unfortunately this is a hard problem without many tried and tested solutions!
Determining if chatter is enabled:
Possible prevention of feature dependency in Visualforce:
Prevention of feature dependency when performing DML using dynamic types for inserts:
Prevention of feature dependency when querying, using dynamic SOQL: