You need to sign in to do that
Don't have an account?
Bhanu Mahesh
Please help me in searching Feed Elements under specific Topic in community
Hi All,
I am trying to seach for feedItems unser a specific topic in a community. But I am getting the below error
"Search is not supported for this feed type"
There is a method in ConnectApi to search for feeds under a specific topic.
searchFeedElementsInFeed(communityId, feedType, subjectId, q)
But when pass the query string I am getting exceprion.
If I pass null, then I am getting the feedelements under the topic.
I need to search for feedItems under the specific topic using the search string.
Please help in resolving this
I am trying to seach for feedItems unser a specific topic in a community. But I am getting the below error
"Search is not supported for this feed type"
There is a method in ConnectApi to search for feeds under a specific topic.
searchFeedElementsInFeed(communityId, feedType, subjectId, q)
But when pass the query string I am getting exceprion.
If I pass null, then I am getting the feedelements under the topic.
I need to search for feedItems under the specific topic using the search string.
Please help in resolving this
String communityId = 'Id of community'; String q = 'test'; String topicId = 'Id of Topic'; ConnectApi.FeedElementPage topicsFeedElementPage = ConnectApi.ChatterFeeds.serchFeedElementsInFeed(communityId , ConnectApi.FeedType.Topics,topicId,q);Thanks in Advance