You need to sign in to do that
Don't have an account?
ericmonte
Trending Topics Visualforce
So i created a custom visualforce page on Chatter Feeds, but it does not come with the trending topics. Is it possible to retrieve the trending topics? I don't mind creating a SOQL for it, but just need some direction on how to retrieve the topics.
Thanks
You can use one of the ConnectApi.Topics.getTrendingTopics() Apex methods to retrieve the list of trending topics:
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_ConnectAPI_Topics_getTrendingTopics.htm
By any chance you can guide me on how to use this? This is my first time seeing this and not sure how it works.
Thank
So far i have create a method in my class with this:
global List <ConnectApi.Topic> getTopics(){
return null;
}
and unfortunately im getting a Invalid Type.
Also if I did this:
public static ConnectApi.TopicPage getTrendingTopics(communityId);
I get a unexpected token: ')'
getTrendingTopics(communityId)
you need to add the namespace and class:
ConnectApi.Topics.getTrendingTopics(communityId)
https://trust.salesforce.com/trust/maintenance/
awww man!!! i have a developer edition and im on na15, looks like i wont be able to use this functionality next month :(
Thanks alouie i'll test it out once the api 29 comes out.