The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
0answers
6 views

Auto subscription on Content Version

Is it possible for an Admin to create a public group and make the public group subscribe to a particular library? Didn't find any documentation on this.
0
votes
0answers
9 views

Library of the document

How can I query the Library in which a particular document is uploaded? firstPublishLocationId only works for API so is there any other way to query the library?
2
votes
1answer
37 views

Attach ContentDocument to record [closed]

Maybe someone knows how to attach ContentDocument to record through Apex? I need to copy ContentDocuments (which are in Google Doc's, Notes and Attachments related list) from one Object to another. I ...
0
votes
1answer
23 views

Compile Error: Non-void method might not return a value or might have statement after a return statement. at line 17 column 9

upload any file upto 2 gb from content version @RestResource(urlMapping='/DragAndDrop/v1/*') global with sharing class DragAndDropRESTAPI { @HttpPost global static String attachDoc(){ ...
0
votes
1answer
26 views

Hide master record type

In Content Version, I have a record type say 'ABC' which is assigned to profile 'XYZ'. But when I log in as the profile XYZ, I'm getting a field called Record Type with the options 'General' and ...
0
votes
1answer
20 views

Record type in Content Version Object

I have a picklist in the Content Version object and I have a set of profiles. The values of the picklist must be restricted to each profile that is the values seen by one profile should not be seen by ...
0
votes
1answer
28 views

Unable to cover to test class for below trigger

I have written trigger and a test class for my content version Handler public class handlerClassContentVersion{ public set<string>prodNames = new set<string>(); public ...
0
votes
1answer
17 views

Insert ContentDocumentLinks for Chatter Content Posts

We have a set of ContentVersion records that have been inserted by users via a FeedItem post. Unfortunately because Chatter groups has many functional limitations we have to migrate these files to ...
0
votes
2answers
49 views

Is there a way to link to a content record from a salesforce email template?

This is what I am working with: <messaging:emailTemplate subject="Activated Agreement {!relatedTo.Name}" recipientType="User" relatedToType="ContentWorkspace"> <messaging:htmlEmailBody > ...
1
vote
0answers
12 views

Why doesn't ContentVersion support getUpdated() or getDeleted() calls?

I'm working on backing up Documents, Attachments, ContentDocuments, ContentVersions. It seems that I cannot use getUpdated() and getDeleted() calls on ContentDocuments and ContentVersions. However, I ...
0
votes
0answers
14 views

Update Custom Fields on ContentVersion

On a series of ContentVersion records inserted via Chatter FeedItem, I'm trying to assign custom fields on these records after they've been inserted, but as they were created via a FeedItem post I ...
0
votes
1answer
51 views

Querying ContentVersion or ContentDocument for User Other Than Owner - Only One Record At a Time?

My issue is that I can't seem to query more than one record at a time from the ContentVersion or ContentDocument if I'm not the owner of the file. Here is what works for me: ...
0
votes
1answer
25 views

FeedItem ParentId Access

This question is an extension of: ContentWorkspace Permission And Migrating I have Portal Users that are creating FeedItems that are related to a custom-object record they have access too. Previously ...
1
vote
0answers
36 views

Adding Delete button to custom list controller for ContentVersion

I've been trying to have this code done with and finished for ages, and everytime I think I'm done, the person who wanted the code always adds an extra feature he'd like added in last minute. :T In ...
3
votes
1answer
38 views

ContentWorkspace Permission And Migrating

I am working on an instance that has a large set of ContentVersion data uploaded by Customer Portal Users and saved across many ContentWorkspace(s) or Libraries. We have encountered some issues ...
0
votes
0answers
51 views

Error from batch Apex base64 export from ContentVersion to Attachment

I've been writing code for making a scheduled batch export of every ContentVersion object, creating a new custom object (ProductRegistration__c) and adding a new Attachment to the new custom object, ...
0
votes
1answer
67 views

Upload Content Version using REST Api

I am referring to https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/dome_sobject_insert_update_blob.htm documentation for Content Version and getting this error " You have sent ...
0
votes
0answers
51 views

Getting the list of members of a ContentWorkspace(Library) in apex

I have a requirement to send an email to all the members of the ContentWorkspaces to which a ContentDocument belongs. I have got the list of Content workspaces to which that document belongs. But how ...
0
votes
1answer
35 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
118 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
56 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
56 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
115 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
149 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
350 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
28 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
174 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
244 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
137 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
88 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
175 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 ...
1
vote
1answer
150 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
150 views

Query ContentVersion with Community User

I have a simple question. Can users with Customer Community Login query the ContentVersion object?
2
votes
0answers
156 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
155 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
109 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
89 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
509 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
758 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}"> ...
1
vote
1answer
570 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
154 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
2k 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 ...
1
vote
1answer
1k 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
526 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
251 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
535 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
2k 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
732 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
211 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
727 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 ...