Discussions
- General Development
- Schema Development
- Apex Code Development
- Visualforce Development
- Formulas & Validation Rules
- Security
- Mobile
- Force.com Sites & Site.com
- Chatter Development
- Java Development
- .NET Development
- Perl, PHP, Python & Ruby
- Desktop Integration
- APIs and Integrations
- Visual Workflow
- Apple, Mac and OS X
- VB and Office Development
- AppExchange Directory & Packaging
- Salesforce Labs & Open Source Projects
- Other Salesforce Applications
- Jobs Board
- Force.com Discussion Boards
- :
- Developer Boards for Force.com and Database.com
- :
- Chatter Development
- :
- Grab all posts on the main Chatter page (within an...
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Grab all posts on the main Chatter page (within and outside of groups)
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
09-04-2012 02:36 PM
I am trying to move all Chatter activity from one instance to another using the Chatter SOAP API. I cannot find the SOQL query to grab the posts on the main Chatter page. Is there a simple query to grab every post on the Chatter page? If it has to be broken down by User or Group, that's fine.
Note: I can create all the required Groups. I can get a list of all the users and map them over to the other instance. I just can't get the actual posts from the Chatter page.
Solved! Go to Solution.
Re: Grab all posts on the main Chatter page (within and outside of groups)
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
09-05-2012 07:33 AM
http://www.salesforce.com/us/developer/docs/api/Co
Re: Grab all posts on the main Chatter page (within and outside of groups)
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
09-06-2012 01:24 PM
The selected answer is correct. My issue was that I had the 'ContentData' field in my query and this field seems to poinson all queries. Removing that element allowed me to get all records.
Re: Grab all posts on the main Chatter page (within and outside of groups)
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
09-06-2012 07:12 PM
for(Feeditem fi:[Select Body, Title, Type, ContentData from FeedItem Where type = 'ContentPost' limit 5]) {
System.debug(fi.ContentData);
}

