function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
firefoxfirefox 

Where is the recently created FeedPost stored?

 

Scenario:

- I create a FeedPost using User Interface.

- I need to programmatically retrieve the details of FeedPost that's created recently.

  For ex : id, created date, created by whom? 

 

How should I query the Sforce? 

 

select unknownColoumns from unknownTable? 

 

Please clarify.

 

Thanks in advance.

Best Answer chosen by Admin (Salesforce Developers) 
forecast_is_cloudyforecast_is_cloudy

Check out this article on the basic Chatter data model and how you can query FeedPost and other objects - http://wiki.developerforce.com/index.php/Chatter_Code_Recipes.

All Answers

forecast_is_cloudyforecast_is_cloudy

Check out this article on the basic Chatter data model and how you can query FeedPost and other objects - http://wiki.developerforce.com/index.php/Chatter_Code_Recipes.

This was selected as the best answer
firefoxfirefox

Thanks a lot, that helped.

 

I used following query - 'select title from FeedPost'. 

An error occured - org.apache.axis2.AxisFault: INVALID_TYPE_FOR_OPERATION: entity type FeedPost does not support query

 

Any idea?

SuperfellSuperfell

See the queries in recipe #7 in the previously linked doc.

firefoxfirefox

Thanks, I missed that.