I have few guys knowledgeable about some topics in Chatter and i'm trying to retreive these records via Apex. But there're no found results at all in dev console or just controller.

How can I get these records?

  • 1
    What do you mean by knowledgeable ?
    – Mahmood
    Jun 14 '16 at 9:26
  • "Knows About" section in Chatter. It works with KnowledgeableUser object as far I understand. Jun 14 '16 at 9:27
  • Can you post what Apex code you have? You can query the KnowledgeableUser object in a SOQL. If you want to do this as a one-off exercise, you can use DataLoader or Apex Execute via Workbench: workbench.developerforce.com/query.php Jun 14 '16 at 9:31
  • Just: System.debug( [ SELECT Id FROM KnowledgeableUser ] ); Workbench didn't return any records. Maybe there is an issue with some settings? Chatter shows that I have such record: take.ms/Hukee Jun 14 '16 at 9:37
  • Go to Apex Execute in Workbench and execute: List<KnowledgeableUser> kuList = [SELECT Id FROM KnowledgeableUser]; system.debug('THE NUMBER OF KNOWLEDGEABLEUSER RECORDS IN THIS ORG ARE...' + ' ' + kuList.size()); How many records do you see? Jun 14 '16 at 10:15

Well guys...

It works now. As far I understand records were created after some time interval.

I think it's some standard Salesforce logic.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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