The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
13 views

Remove Default Record Type for Content “General” from Page Layout

I need to remove the Standard Record Type Field from Library Page Layout. I had record types earlier which I have deactivated and even deleted but still the Master Record Type is present on the page ...
1
vote
1answer
29 views

Allowing customer portal users to download attachments

I'm trying to implement a feature in out customer portal that allows the users to upload a document (which is then stored as an attachment on a custom object) and retrieve it again. I've managed to ...
0
votes
0answers
25 views

Upload File (image/audio/video) to FeedItem in chunks

​public static String upload(String folderId, String documentId, String fileName, String base64BlobValue) { if(documentId == '' || documentId == null) { Document document = new ...
0
votes
0answers
25 views

Insert Content to Content-Version using a non local PATHONCLIENT URL?

We are working on Salesforce Communities using the standard Napili Template. We have Feed-Item and Feed-Comment Object where we can insert data extracted from legacy system. Feed-Item and ...
3
votes
2answers
35 views

Can't pinpoint what is causing DUPLICATE_VALUE error on contentDistribution insert

I have a custom app that is used for scheduling face-to-face trainings. I'm trying to set up a class that will run daily to gather all trainings scheduled for the next two weeks, and send out ...
0
votes
0answers
56 views

Testing FeedItem with NetworkScope

I'm testing the insert of a FeedItem (with a ContentPost), however, I keep getting an exception: List<FeedItem> feedItems = new List<FeedItem>(); for (SObject so : ...
3
votes
1answer
87 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
14 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 ...
0
votes
0answers
65 views

Access Salesforce CRM Content in Communities & public VF pages

We have a requirement to put a custom download link on VF page for few Salesforce CRM Content. We would like to share few Salesforce content with "Community User" and few Salesforce Content with ...
1
vote
3answers
72 views

How to set the default record type for Content Version in the Enhanced Profile User Interface

In the original Profile User Interface this is obvious: Go to the desired Profile Find the section called ‘Standard Record Type Settings’ Look for the label ‘Content Versions’ Click [Edit] and ...
1
vote
1answer
73 views

Rating content from apex/visualforce [closed]

Within a Visualforce page, how can I enable external community users to rate a Salesforce CRM Content document with thumbs up or thumbs down? I'm basically trying to create a custom version of the ...
0
votes
1answer
55 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 ...
0
votes
4answers
100 views

Exporting Content from Salesforce

I would like to export ContentVersion with real content file. We want to migrate content from Salesforce to another system for a single library. So, is there any way we can export data for a single ...
0
votes
0answers
20 views

ContentVersion.Title is calculated incorrectly when PathOnClient is like 'One.Two.txt' - it gets value till the 1st dot

When content version is being created programmatically with PathOnClient field populated with value like 'test.file.txt', its title is set to 'test' (not 'test.file') and FileExtension='txt'. It seems ...
0
votes
0answers
80 views

Unit test class v32 on Spring 15 start failing because 'SELECT FROM ContentVersion' doesn't return any records

Here is the extract from unit test. It works for api version <32, but for v32 on Spring 15 env 'SELECT FROM ContentVersion' return nothing and as result unit test fails. //create initial ...
0
votes
0answers
38 views

Chatter File appearing in sysadmin UI even though marked as private in Personal Library

One of our apps uploads files that get stored in Chatter Files, (ContentVersion). Fields get set to Origin 'H' and PublishStatus 'R'. According to docs: Origin of 'H' - meaning "This is a Chatter ...
1
vote
1answer
91 views

Can we query Library member permission and information about which type of permission member held?

Can we query Library(ContentVersion) member permission and information about which type of permission member held ? Manage Library Add Content Add Content on Behalf of Others Archive Content ...
2
votes
1answer
108 views

Query ContentVersion with Community User

I have a simple question. Can users with Customer Community Login query the ContentVersion object?
2
votes
0answers
124 views

Custom field on ContentVersion returning 'NULL' in SOQL even value is assigned into the custom field

I created a custom field lookup of "Account" on "ContentVersion" object, and I wrote a trigger on ContentVersion that will assign "Account" field with a specific Account. Trigger is like this:- ...
1
vote
1answer
116 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 ...
0
votes
1answer
82 views

Navigate to chatter file in salesforce1 and salesforce

I've been trying to navigate to chatter file both in desktop browser and in salesforce1 from a publisher action but I can't seem to get it working. I have a VF Page like <script ...
0
votes
1answer
80 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 ...
3
votes
3answers
347 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
654 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
354 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
134 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
3answers
1k 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
925 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 ...
2
votes
1answer
407 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 ...
4
votes
1answer
186 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
429 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
1k 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 ...
2
votes
1answer
574 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
182 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
556 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
397 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
345 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
382 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
401 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
382 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 ...
5
votes
2answers
1k 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
472 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
1k 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
403 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 ...