The tag has no usage guidance.

learn more… | top users | synonyms

1
vote
1answer
23 views

ContentDocument parentId

I am uploading a file via the Files related list on the Contact detail page. When I query (SOQL) the database I see the relevant ContentDocument and ContentVersion records. I would like to get the ...
0
votes
1answer
53 views

how to insert content version in test class

how to insert content version in test class what value set for versionData pathOnClient FirstPublishLocationId
0
votes
0answers
51 views

Overriding the Content Version Detail Page in Libraries

I know that there is no standard way to customize the libraries UI, but does anyone have a workaround to this? I would like to remove some of the features on the Detail page so that users only see the ...
1
vote
0answers
31 views

How to create content version in specific content folder from Apex?

I'm able to create content version and content folder in salesforce files using Apex but can anyone please help me how to create content version in one of content folder . Thanks
0
votes
0answers
21 views

How to add Tags in Content without Publishing, using APEX?

Is there a way to save Tags in Content Version records uploaded via APEX to personal space or chatter feed only? I'm trying to Upload a file to "Salesforce Files" without Publishing it to a Library. ...
1
vote
2answers
63 views

Migrating Chatter files attached to feed comments

I am ultimately trying to use data loader to migrate our chatter posts & comments that have files attached to them. They were originally added by uploading directly from computer to the comment. ...
1
vote
1answer
134 views

JS Remoting + Angular Ng-File-Upload

I was wondering if anyone had any examples using AngularJS + NgFileUpload and a @RemoteAction that handles base64 encoded file-data to create a drag & drop uploader? I have JS handler that works ...
10
votes
1answer
97 views

SOQL: (WHERE x IN(a,b)) does return 2 records, but (WHERE x = a OR x = b) returns only 1 record… Why?

I'm trying to retrieve some ContentVersion records, but I'm having a lot of issues with it. After some research it seems as if the records are divided into two 'sets' as it were, and Salesforce in ...
3
votes
1answer
112 views

Apex Query on ContentVersion object and get all record

Apex Query on ContentVersion object and get all records, but the record are coming on current login user owned, not all records are coming. for example i am login with administrator account and want ...
1
vote
1answer
55 views

Insert bulk data in ContentVersion with Bulk API

We are working on a migration application in C# to migrate data from SQL Server to Salesforce and we are using Bulk API and sforceService (Salesforce Enterprise WSDL) for this. We are migrating data ...
0
votes
0answers
14 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
13 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
0answers
160 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
184 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
36 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 'ABC'....
0
votes
1answer
49 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
66 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 set<...
0
votes
1answer
48 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
61 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
18 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
23 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 ...
1
vote
1answer
189 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: Map<Id,...
0
votes
1answer
65 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 ...
3
votes
1answer
121 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
62 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
85 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
172 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
100 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
51 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 ...
2
votes
1answer
317 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 ...
4
votes
2answers
227 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 ...
3
votes
1answer
576 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
257 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 guest ...
1
vote
3answers
403 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
169 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
122 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
4answers
319 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
195 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
181 views

Query ContentVersion with Community User

I have a simple question. Can users with Customer Community Login query the ContentVersion object?
2
votes
0answers
192 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
176 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
130 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 type="text/...
0
votes
1answer
105 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 ...
4
votes
3answers
596 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: https://gist....
4
votes
2answers
846 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}"> <apex:...
3
votes
1answer
905 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
165 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
2k 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
612 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 ...