• spa
  • NEWBIE
  • 0 Points
  • Member since 2010

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

How do I get a list of new Comments added since a certain time?  

I can get new feedposts/newsfeed by using the CreatedDate as a filter, but SOQL of the form

 

SELECT ID from FeedComment WHERE CreatedDate >= TODAY 

 

does not work as feedComments cannot be queried on their own and using it like so

 

SELECT ID, (SELECT ID FROM FeedComments WHERE CreatedDate >= TODAY) from NewsFeed 

 

returns all newsfeeds not only the ones which have Feedcomments. 

 

thanks,

sp

  • December 29, 2011
  • Like
  • 0

Hello Everyone,

 

I am dealing with FeedPost (Type=ContentPost) with file attachments in a visualforce page. I need to render a download link for the document attached in the Feed Post. I can't use visualforce chatter tags.

 

Is their any other way similar to what we do for attachment, as shown in code snippet below.

 

 <apex:outputLink 
      value="{!URLFOR($Action.Attachment.Download,
                      attachment.id)}">
      Download Now!
 </apex:outputLink>

 

 

 

Hi All,

 

I am trying to set current users chatter status message by updating the UserStatus field on user object. It works fine for the first time but if i try to set the same status again, it doesnt works. 

 

While we can do this from the Chatter tab UI. Any suggestions how we can do this from code as well?

 

Thanks.

  • January 06, 2011
  • Like
  • 0

How do I get a list of new Comments added since a certain time?  

I can get new feedposts/newsfeed by using the CreatedDate as a filter, but SOQL of the form

 

SELECT ID from FeedComment WHERE CreatedDate >= TODAY 

 

does not work as feedComments cannot be queried on their own and using it like so

 

SELECT ID, (SELECT ID FROM FeedComments WHERE CreatedDate >= TODAY) from NewsFeed 

 

returns all newsfeeds not only the ones which have Feedcomments. 

 

thanks,

sp

  • December 29, 2011
  • Like
  • 0