The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
9 views

How do I create a master detail or lookup relationship to ContentVersion?

I've created my custom object, I want to add a lookup or (ideally) a master detail relationship to ContentVersion. However when I go to create a New Relationship on the custom object, I don't see ...
2
votes
3answers
39 views

Problem trying to upload ContentVersion from base64 image data via REST API

I am trying to upload a small image in base64 as a Chatter file (ContentVersion record where Origin = 'H') via the Force.com REST API. Here are the headers and body that I am sending: ...
4
votes
2answers
113 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
40 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 ...
4
votes
2answers
70 views

PageReference to Libaries page clearing my search

I have a Visualforce page that renders part of library content in it, but I also give them the option to type in a search which will renavigate them to the default Libraries tab with the search option ...
3
votes
2answers
486 views

File Attachment not working when attaching crm Content

I have a page where the user selects content (that is 5MB or lower, only 2 attachments allowed per email) to use as an attachment in an email. It all seems to work fine, the email sends and there are ...
0
votes
1answer
214 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 ...
1
vote
0answers
166 views

Updating Content records with dataloader

I'm trying to update detail fields on Content records using the Salesforce data loader, as well as dataloader.io. Typically, the uploads have failed w the message "ERROR: You do not have the level of ...
3
votes
1answer
81 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 ...
2
votes
1answer
140 views

Error while ant build on Developer sandbox : command 'ant pushdev'

I am running in a build issue wile running the command 'ant pushdev' Do I have to change the version number to latest? If yes which are the right places to change the version number? Below is the ...
1
vote
2answers
299 views

Get all documents in content belonging to a particular library in SOQL

I need to get documents of a particular library using SOQL. SELECT title FROM ContentVersion where Contendocument.Parent.Contentworkspace.name='EMEA Sales' The error i get is INVALID_FIELD: on ...
1
vote
1answer
236 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 ...
3
votes
1answer
101 views

Is it possible to update “Featured Content” in Salesforce Content?

Featured Content is a neat way to promote certain items in SFDC Content. From the documentation: Featured Content This section lists the five pieces of content in your libraries most recently ...
2
votes
1answer
207 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 ...
5
votes
1answer
233 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 ...
1
vote
1answer
254 views

Cannot use StandardSetController with ContentVersion?

I am trying to display a list of documents stored in Salesforce CRM Content on a VF page using JQGrid. I used OFFSET for paging. Since the number of records is more than 2000, I wanted to use ...
4
votes
1answer
242 views

Apex conventversion.VersionData chunk?

We are querying for contentversion data in apex and would like to take the first part of the file data and send chunk by chunk to another webserver. Is there a way to only take 10,000 bytes of the ...
7
votes
2answers
305 views

Query Chatter Comment Files for a group of records

My question is similar to this one except that I need the files for a group of records, making the solution of querying ContentDocumentLink unworkable, because it requires a single Id for the where ...
1
vote
2answers
242 views

ContentPublication limit exceeded

Is there a limit on the content publication ? Is this the same as content version? The docs say "The maximum number of versions that can be published in a 24-hour period is 5,000. " Does this ...
4
votes
2answers
580 views

Can't we query ContentVersion to get the file posted on the Object?

We have VF page that allows a user to upload an attachment that we later convert to FeedItem. THe VF Page also allows updating the FeedItem by inserting a new ContentVersion. The whole thing works ...
1
vote
1answer
383 views

Force.com One App License and Content Management

I am trying to port an existing app to Force.com One App License. Here is the screen shot indicating the package dependency I have two related questions here : Q1 : Is feature "Content" available ...
4
votes
4answers
660 views

Isn't ContentVersion 'VersionData' Updateable (Amendable)?

I'm developing an file (attachments/contents) upload app and the process of my upload is that I upload file in chunks to ensure I'm not hitting view state. For first chunk insert new attachment ...
3
votes
1answer
259 views

Developer org needs Salesforce Content License

I'm trying to insert a ContentVersion item as follows: string before = 'Testing base 64 encode'; Blob beforeblob = Blob.valueOf(before); ContentVersion v = new ContentVersion(Title='New ...