• J L 5
  • NEWBIE
  • 0 Points
  • Member since 2015

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

I am working on a custom Visualforce page to view Chatter Files list from custom object record feed (filtering feeditem based on contentpost type). This custom page is added to partner & customer communities as a tab. The problem is that when I log in to community with Partner Community User I am able to see the chatter feeds and file previews from record feed, but making an SOQL query in the controller of my visualforce page to ContentDocument is returns nothing. For example:

This would return correctly all the feed items: List<FeedItem> feedItems = [SELECT Id, ContentFileName, RelatedRecordId FROM FeedItem where Type='ContentPost' and parentId IN :ias];
But this doesn't return anything in community: List<ContentDocument> cDocs = [SELECT Id, title FROM ContentDocument];
But returns correctly a list of record when controller is ran while logged internally.

I have tried using without sharing for the controller class with same result.

My question then is that is Community User somehow limited from querying ContentDocument records? The same query returns all ContentDocument's when Visualforce page is accessed from Salesforce internally..

Thanks in advance
  • March 18, 2015
  • Like
  • 0
I am using IE11 browser. I am using Forcetk.js to for file upload into content version. The script is working fine in Mozilla and Chrome.
But in IE11, I get the below error in Forcetk.js file. Please help if any one faced similar issue.User-added image