• mcowger
  • NEWBIE
  • 0 Points
  • Member since 2010

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies

Hi,

 

I'm trying to develop something quick to pull some FeedPosts and am looking at the Recipes provided.  The SOQL for pulling all your items specifies the following in the WHERE claus:

 

AND FeedPost.Body != ''

 

However, if I include that in my SOQL call below

 

 

query = "SELECT Id, CreatedById, CreatedBy.FirstName, CreatedBy.LastName, FeedPost.Body FROM NewsFeed WHERE CreatedById != '" + id + "' ORDER BY CreatedDate DESC, ID DESC LIMIT 20"

 

I get an error:

 

 

MALFORMED_QUERY: Illegal filter on NewsFeed

 

I actually get this anytime I try to filter on any part of the 'FeedBody' Object.  Thoughts/Ideas?  It is important to me to be able to filter on the Body (so that I can filter out Posts that are only Links, etc).

 

 

 

Message Edited by mcowger on 03-31-2010 09:31 PM