The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
23 views

How to write a trigger to send an email notification to author whenever a thumbs up/ down voting or a comment is given on a Published content?

How to write a trigger to send an email notification to author / designate whenever a thumbs up /thumbs down voting is done on a Published content? This following trigger doesnt work.It doesnt fire ...
1
vote
1answer
24 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
217 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
97 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
41 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
104 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
348 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 ...
3
votes
1answer
102 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
288 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
499 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
181 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 ...
1
vote
1answer
296 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
268 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
1k 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
266 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
3k 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
606 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
338 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 ...
4
votes
1answer
289 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 ...