+ Start a Discussion
JuliaForestJuliaForest 

How to get bookmarked feeds in apex?

Hello Everyone,

 

Does anybody know how to get list of user's bookmarks via apex? can't find any appropriate object in scheme...

 

Thank you!

Best Answer chosen by Admin (Salesforce Developers) 
jody_blyjody_bly

Use Chatter in Apex:

 

ConnectApi.FeedItemPage feedItemPage = ConnectApi.ChatterFeeds.getFeedItemsFromFeed(null, ConnectApi.FeedType.Bookmarks, 'me', null, null, ConnectApi.FeedSortOrder.CreatedDateDesc);

 

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

All Answers

jody_blyjody_bly

Use Chatter in Apex:

 

ConnectApi.FeedItemPage feedItemPage = ConnectApi.ChatterFeeds.getFeedItemsFromFeed(null, ConnectApi.FeedType.Bookmarks, 'me', null, null, ConnectApi.FeedSortOrder.CreatedDateDesc);

 

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

This was selected as the best answer
JuliaForestJuliaForest

Thanks a lot!!!