The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
1answer
41 views

Retrieve all ContentDocument Ids whose related ContentDocumentLink record is updated/added

I want to retrieve File Ids for which new entry has been added or removed from child ContentDocumentLinks relation. Following is the parent to child relationship query I made for retrieving Ids, title ...
2
votes
1answer
34 views

Trigger on ContentDocument not working

I am trying to setup triggers on ContentDocuments. The following link says that this is possible https://developer.salesforce.com/releases/release/Spring12/contentdocument+triggers I am able to ...
0
votes
0answers
8 views

How to figure out if a ContentDocument has been shared/Unshared?

I want to figure out when a ContentDocument has been shared or unshared with some user/group which is internal/external to the enterprise.. I see that an sobject by the name ContentDocumentLink is ...
1
vote
1answer
14 views

How to delete ContentDocumentLink records massive

I want to free some space in salesforce related to Chatter Files or Files, I though all records are stores in ContentDocument object, but when I delete records from this object, the file storage still ...
1
vote
2answers
35 views

Querying all the files from a list of groups for a particualr user

I'm trying to display all the files of all the Groups to which a user belongs to. i.e, if the user is a member of GroupA and GroupB, then I have to display all the files which belong to GroupA and ...
0
votes
1answer
39 views

Inconsistent ContentDocument Query Results

Using the Developer Console as System Admin: The result of this query: SELECT Id FROM ContentDocument does NOT contain the row returned from this query: SELECT Id FROM ContentDocument WHERE ...
2
votes
1answer
33 views

Getting Blob data from content document using File Sync

So im using File Sync to upload an excel file to salesforce in order to use it in other class ive built (the class is reading the csv file and insert the data to salesforce - that one works fine ...
1
vote
0answers
21 views

how to view a picture in a word document on offline mode VisualForce

I trying to access a picture in offline mode ( without a connection), stored in a word document which i generated with visualforce but it gives the following error. Can you please, tell me if it ...
0
votes
1answer
33 views

Creating a contentworkspaceDoc?

I am trying to create a contentworkspaceDoc , contentWorkspaceDoc allows a document to be shared with multiple libraries. I am have a query where I pull all the existing contentworkspaceDoc from the ...
1
vote
1answer
93 views

UserRecordAccess

Does UserRecordAccess report edit-ability of ContentDocument or ContentVersion records? Every user I query URA with for either object returns HasEditAccess=true even if the content is not shared ...
4
votes
2answers
595 views

Visualforce Pages in Object specific actions

I have a simple vf page that just calls a controller's method on the action attribute <apex:page standardController="C_Object__c" extensions="Ext1" action="{!method1}"> ...
0
votes
1answer
261 views

A link to Content documents from a VF page

I am managing my document in SF content library. I want to include a link to some documents in a VF page BUT I don't want the link to open the document preview on the Content tab. I would like the ...
2
votes
1answer
57 views

I want to stop chatter emails when I create ContentDocumentLink

I'm uploading multiple files via the SOAP API in a nightly process. Part of that is assigning permissions to the files. I'm using ContentDocumentList to allow a user to see a document. When creating ...
5
votes
1answer
168 views

Is there a way in apex to add 'force.com Content' files as attachments in emails?

I need to develop a way for users to select what content they want from a custom page and then have it added as an attachment to an email. I know you can add attachments to emails via: ...
0
votes
1answer
763 views

How to Test ContentWorkspace, ContentDocument & ContentVersions

So I have some apex code that is query some Content Workspaces, Documents and Versions. As far as I can tell these are ready only in Apex. Error: Field is not writeable: ContentDocument.Title ...
4
votes
1answer
171 views

SOSL Filter by Library on Salesforce Content

Is is possible to search Salesforce Content in a specific library (ie. ContentWorkspace)? According to the Content data model, it seems the relationship between ContentWorkspace and ContentVersion ...
3
votes
1answer
495 views

SOQL query to load all documents in a content library

I am trying to query for all the documents in a library using the BULK API. The SOQL query I use is SELECT ...
7
votes
1answer
750 views

Trigger to avoid file upload to chatter comment

We want to avoid, that a user is able to upload files to chatter comments. We realized this by creating triggers on FeedComment and ContentVersion. This prevents to save the comment successfully. If ...
1
vote
1answer
234 views

Return with Soql query “Related Content”

I'm trying to write a soql query to get all the content's ids of the related content on a custom object. I would like to know which are the related content of a record. I have tried with Schema ...
2
votes
1answer
481 views

How to upload an Excel file into ContentVersion Object

I need to upload an Excel file on an opportunity. I want to user ContentVersion standard object to store these excel files. Can anyone please explain or share a code snippet to show how can we ...
2
votes
1answer
480 views

How to delete latest version from ContentDocument?

Is there any way we can delete Latest Version from ContentDocument? I have tried deleting ContentVersion, but DML Operation Delete is not allowed on it. I have tried deleting ContentDocument, but it ...
10
votes
4answers
2k views

How can Document folder be created in unit tests?

Can Document folders be created in unit tests? If not, is there a simple workaround for testing Document objects in unit tests?
5
votes
1answer
367 views

ContentVersion Reasonchange not updateable?

I have a before update trigger that I want to use to capture updates to previous version records in the contentversion. I want to add additional text to the reasonchange that was added by the user ...
4
votes
2answers
4k views

how to show sharepoint documents in salesforce?

How to show sharepoint documents in salesforce? I should also be able to upload documents from salesforce directly to sharepoint if the users attach a document for a record in salesforce. Any idea ...
2
votes
3answers
903 views

Transfering content from one library to a new library

I attempting to move content from one library to another in mass. I have come into a snag where I am given an error message. "You do not have the level of access necessary to perform the operation ...
2
votes
1answer
412 views

Sharing documents with High volume portal users

My problem is similar to this but also with the added problem of security. High Volume Customer Portal user - Insufficient Privileges for non-image Documents I want only a certain group of people ...
7
votes
1answer
427 views

Obtaining all ContentDocument records using SOQL

According to the Salesforce documentation on ContentDocument Users (including users with the “View All Data” permission) can only query files they have access I find this very strange. Why would ...