Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a VF page which uses standard controller (custom object). Basically I am overriding view action for a custom object. Now I have a section on this page which I want to show only if chatter is enabled for this object. Is there any way to check that? Any thought?

share|improve this question

Enable or check Chatter Feed Tracking programatically

Read through this earlier discussions and also the schemadescribe call

http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_methods_system_sobject_describe.htm

IsFeedenabled method for each object will tell you whether chatter is enabled or not for the object

share|improve this answer
    
can't we detect on VF page itself? – doga Jan 9 '13 at 10:47

See Describe API - the isFeedEnabled method is what you're looking for. You'll need to put the logic in a custom controller extension, but it will only be a few lines.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.