Getting feed items from a feed is similar, but not identical, for each feed type.
Get feed elements from the Company, DirectMessageModeration, DirectMessages, Home, Moderation, and
PendingReview feeds
To get the feed elements from these feeds, use these methods that don’t require a subjectId.
•
getFeedElementsFromFeed(communityId, feedType)
•
getFeedElementsFromFeed(communityId, feedType, pageParam, pageSize, sortParam)
•
getFeedElementsFromFeed(communityId, feedType, recentCommentCount, density,
pageParam, pageSize, sortParam)
•
getFeedElementsFromFeed(communityId, feedType, recentCommentCount, density,
pageParam, pageSize, sortParam, filter)
•
getFeedElementsFromFeed(communityId, feedType, recentCommentCount, density,
pageParam, pageSize, sortParam, filter, threadedCommentsCollapsed)
Get feed elements from the Favorites feed
To get the feed elements from the favorites feed, specify a favoriteId. For these feeds, the subjectId must be the ID of
the context user or the alias me.
•
getFeedElements(communityId, subjectId, favoriteId)
•
getFeedElements(communityId, subjectId, favoriteId, pageParam, pageSize, sortParam)
•
getFeedElements(communityId, subjectId, favoriteId, recentCommentCount,
elementsPerBundle, pageParam, pageSize, sortParam)
Get feed elements from the Filter feed
To get the feed elements from the filters feed, specify a keyPrefix. The keyPrefix indicates the object type and is the first
three characters of the object ID. The subjectId must be the ID of the context user or the alias me.
•
getFeedElementsFromFilterFeed(communityId, subjectId, keyPrefix)
•
getFeedElementsFromFilterFeed(communityId, subjectId, keyPrefix, pageParam,
pageSize, sortParam)
•
getFeedElementsFromFilterFeed(communityId, subjectId, keyPrefix, recentCommentCount,
elementsPerBundle, density, pageParam, pageSize, sortParam)
Get feed elements from the Bookmarks, Files, Groups, Mute, News, People, Record, Streams, To, Topics,
and UserProfile feeds
To get the feed elements from these feed types, specify a subject ID. If feedType is Record, subjectId can be any record
ID, including a group ID. If feedType is Streams, subjectId must be a stream ID. If feedType is Topics, subjectId
must be a topic ID. If feedType is UserProfile, subjectId can be any user ID. If the feedType is any other value,
subjectId must be the ID of the context user or the alias me.
•
getFeedElementsFromFeed(communityId, feedType, subjectId)
•
getFeedElementsFromFeed(communityId, feedType, subjectId, pageParam, pageSize,
sortParam)
•
getFeedElementsFromFeed(communityId, feedType, subjectId, recentCommentCount,
density, pageParam, pageSize, sortParam)
•
getFeedElementsFromFeed(communityId, feedType, subjectId, recentCommentCount,
density, pageParam, pageSize, sortParam, filter)
•
getFeedElementsFromFeed(communityId, feedType, subjectId, recentCommentCount,
density, pageParam, pageSize, sortParam, filter, threadedCommentsCollapsed)
413
Using Salesforce Features with ApexApex Developer Guide