• Vikash Agarwal
  • NEWBIE
  • 0 Points
  • Member since 2014
  • Salesforce/heroku/java-j2ee developer
  • Appirio


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

Hi,

 

How can I get a string representing today's date in the format YYYYMMDD ?

 

Thanks

Hi,

 

I'm getting the following error: Implementation restriction: FeedItem requires a filter by Id.

For custom standard user profiles.

For system admin i'm not getting this error.

 

Following is the code that i"ve implemented:

 

public List<FeedItem> getChatterCount() {

return [select id from FeedItem where parentID =: ApexPages.currentPage().getParameters().get('id')];
}

 

Pls. suggest

 

Thanks,

Neha G Patel