Questions tagged [chatter-file]

The tag has no usage guidance.

0
votes
0answers
24 views

SalesforceSDK - How do I upload a file with FileRequests class

I am having trouble uploading a file from my custom android app. I am using the Salesforce SDK for android, and as I understand it, I need to use FileRequests.uploadFile to do that. So I am trying to ...
0
votes
0answers
7 views

How do I control css for Chatter Feed files showing thumbnails?

We have a Chatter Feed showing for our portal which includes showing the files attached to that feed item. The problem is the thumbnails showing for the files are squashing the file name in the right ...
0
votes
1answer
39 views

What is the file limit when using AJAX Toolkit on Visualforce page

I am using html5 FileReader + ajax toolkit + soap API in my Visualforce page to upload a single file as ContentVersion. I'm able to upload files up to 37435519 bytes pdf file but I get this error in ...
0
votes
0answers
25 views

Detect deletion of file when previewed in lightning

How to detect Delete button press in the file opened in preview lightning community using e.lightning:openFiles event and perform some controller action.
2
votes
1answer
105 views

Manage permissions on chatter files from apex

We need to manage access to files from within apex code (triggers mostly). In general, we need to allow only specific users (not profiles) read access on a per-file basis. As in, on our page a user (...
2
votes
0answers
131 views

Allow site/community user to download chatter files

I have a community that we set up to point to a VF page. One of the things we want to do is to allow guest users to download Chatter files (ContentVersion or whichever one works). I am able to ...
1
vote
0answers
59 views

Can I push a file (ContentDocument) out from Salesforce to a File Repository?

Does Salesforce support capability to push out a File (not attachment) from SF onto a REST endpoint?
0
votes
2answers
201 views

How to upload files as a FeedItem with file Attachment onto a record from Lightning?

I have been using this code to add the ability to take pictures of inventory once the customer has audited it- http://www.sfdcmonkey.com/2017/09/25/file-upload-lightning-component/ However, we need ...
1
vote
0answers
320 views

Attach File/ContentVersion into a standard visualforce email template

I have an api that gets pdf invoices and stores them as Salesforce Files. I then want the sales rep to be able to send the email template with the pdf attached. Using standard visualforce email ...
0
votes
1answer
534 views

Accessing a pdf as content document via URL

I have a problem when accesing a pdf stored as salesforce file via URL. At some point in time I was able to load a pdf (stored as note and attachment) in my browser using the following link : [...
5
votes
1answer
2k views

Triggers on ContentObjects

We've been working with Attachment records on our custom objects, and we now need to migrate to Files (you know, that related list that shows up everywhere). We have a lot of trigger logic on ...
0
votes
0answers
75 views

How do I create a shared chatter file via API?

If I call the standard SF API to create a new ContentVersion object and pass the base64-encoded data as the VersionContent (as well as PathOnClient and Title properties) I can create a ContentVersion ...
1
vote
1answer
141 views

Can I detect with JavaScript, when a file preview (renditionDownload) is not immediately available?

In a Lightning Component Im previewing a file immediately after upload: <img src="{!'/sfc/servlet.shepherd/version/renditionDownload?rendition=THUMB720BY480&amp;versionId='+ v....
0
votes
1answer
248 views

Upload Pictures from Salesforce1

How to make sure user uploads two or more pictures(before picture,after picture) before closing the status of service request. So, I have enabled feed tracking on service request custom object and ...
0
votes
1answer
160 views

Private Chatter Group - File Sharing Settings

In our Salesforce org, we only use Salesforce, Gold Partner and Customer Community Plus licenses. We use Salesforce + VF tabs community and we are still in Classic. I am a System Admin and I am ...
0
votes
0answers
744 views

How to hide UploadFile button in Files Related list

We need to disable the Upload Files button in the Files related list and force the users to use Chatter feed to upload files. I cannot remove the Upload Files button from the related list by config ...
0
votes
1answer
184 views

Custom attributes for Files

Can I create a folder and Upload Files with Chatter API as we do for Documents object with REST API? Or Can we add a custom attribute to Files. What my goal is, I have to categorize the files. Each ...
3
votes
1answer
7k views

How to Share a ContentDocumentLink using “Set by Record”

I want to use the "Set by Record" sharing option of Chatter files introduced in Winter '16. As far as I understood I have to add an AfterInsert trigger on ContentDocumentLink and reset the ShareType. ...
5
votes
1answer
165 views

Salesforce File Sync - How do I set Sync status in Apex?

As above, I'd like to set the Sync status on new Files programmatically - does anyone know if it's possible and if so how? When new File records are created, they are set to un-synced mode, meaning ...
1
vote
1answer
640 views

How to share Chatter File (ContentDocument) with set of Users

As per salesforce documentation, record can be created in ContentDocumentLink https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_contentdocumentlink.htm LinkedEntityId ...
1
vote
0answers
266 views

Restrict File Visibility on Records?

I have users who need to have access to certain Accounts and upload files to those Accounts (Using the Chatter File/ContentDocument Object). The org is fairly locked down and some of the files that ...
3
votes
3answers
4k views

How to share files uploaded in “Files” related list to Community Users

With Winter 16 release, Salesforce gave the ability to add Files related list to a Custom/Standard object record. https://docs.releasenotes.salesforce.com/en-us/winter16/release-notes/...
2
votes
1answer
598 views

Confusion Regarding Files, Attachment, Document,chatter and Content Distribution

I was fiddling with various ways to store files in salesforce. Files, Attachment, Document,chatter and Content Distribution and many more. I believe all of these consume the FileStorage of salesforce....
0
votes
1answer
195 views

How to send chatter message in apex from a user lower in role hierarchy to a user who is higher in role hierarchy

I'm trying to send the message to the users in my organisation on chatter from Apex class. Sample user hierarchy where I'm trying to send the message is given below: User 1 |----user 2 ...
6
votes
1answer
2k views

Upload a file to a chatter feed in Apex: API 36

I'm trying to upload a File to a Chatter feed using Apex API 36. It is straightforward in API 35, and Salesforce provides the code below. However it doesn't compile in API 36. Does anyone have a ...
1
vote
1answer
465 views

Getting Invalid Field Name error on FeedItem

I have written the below trigger to block uploading of .exe files in chatter feed. Below is the trigger code - trigger BlockHarmfulFileAsChatterFeed on FeedItem (before insert) { for(FeedItem f : ...
1
vote
0answers
103 views

How to construct a link to the “File Info” page of a File in the SF1 “Files” app?

I have a VF page that displays a list of Chatter Files. I use the ConnectAPI in the controller to obtain the ContentCapability object for each file, which in turn provides properties like ...
2
votes
1answer
668 views

How to get the content of a chatter file using API

I am integrating my SF org with an external mobile app. I have a file uploaded to the chatter feed of each contact (the picture of the contact). This app needs to get the picture to display in the ...
0
votes
1answer
73 views

Which event is fired after uploading a new version of File in chatter?

Actually I have to write a a code after uploading a new version to generate a new alert for User(customized alert, not feed post). So, anyone knows which event is triggered after uploading a new ...
6
votes
1answer
2k views

Adding new “Files” related list to Visualforce page

I'm trying to add the new Chatter Files related list to a Visualforce page but not having much luck. In the past, in order to add the Notes & Attachments related list, you would use: <apex:...
1
vote
0answers
382 views

How to programmatically set File/Feed Item Permissions

There are a couple of questions already similar, but not quite the same - we are in quite a bind, every fork in the feed item/content road has been a total dead end, after almost 9 years on this ...
1
vote
2answers
6k views

ContentDocument Object

Im Working on one scenario update description value in ContentDocument Object. This my piece of code. //Update Description value in ContentDocument object List<ContentDocument> lstcd =...
2
votes
0answers
36 views

Global Search for Files customization

I'd like to add column with parentId name to the search layout of chatter files. Is it possible? - I haven't found anything about customizing Search Layout for Files. If not, what would be the best ...
2
votes
1answer
455 views

Inserting Feed-Item with Attachment

I am trying to inserting Feed-Item with Attachment. I know that I have to the put Image File into Content and get the Content-Version Id. I can use the Content Version Id to reference in ...
0
votes
1answer
490 views

Viewing Chatter Files in Community via Visualforce, surely there's a better way?

I've been trying to create a VF page for a customer community where the customer user can view all the Files on their own Account as a simple list. Internal users are adding these Files as Chatter ...
6
votes
1answer
850 views

Post to Chatter With Binary File from Javascript

So I'm trying to post a feed item to Chatter via the Chatter REST API from Javascript. There relevant documentation shows that the request must be made as a mutlipart/form-data request, so I'm ...
1
vote
0answers
229 views

Object ContentDocumentLink query not working as expected

I am running following query on ContentDocumentLink object using admin token. /services/data/v32.0/queryAll?q=SELECT+ContentDocumentId,Id,IsDeleted,LinkedEntityId,ShareType,SystemModstamp,Visibility+...
2
votes
0answers
355 views

ContentDocumentLink to get recently unshared FileIds for Files tab

Whenever a File in files tab is updated (title renamed, description), ContentDocument field 'LastModifiedDate' is updated. For share activity on any file, ContentDocument's field 'LastReferencedDate' ...
1
vote
2answers
251 views

Querying all the files from a list of groups for a particualr user

I'm trying to display all the files of all the Groups to which a user belongs to. i.e, if the user is a member of GroupA and GroupB, then I have to display all the files which belong to GroupA and ...
2
votes
0answers
198 views

Access to a shared Chatter File's Public file raw data URL

I've been trying to setup an app that will directly link to public chatter files. The best I have been able to get so far is the Flash applet available from the fileViewUrl link, retrievable with ...
3
votes
0answers
347 views

References to URLs returned by Apex ConnectApi in Salesforce1 mobile

I have a VF page that I am using as an inline page on the Opportunity detail page layout. It retrieves and displays files (FeedItems with ConnectApi.ContentCapability) from Chatter feeds on records ...
1
vote
2answers
667 views

unable to drag and drop file form Outlook (2013) to Salesforce Files

I am able to drag and drop (D&D) files from my windows explorer windows (tested .docx and .pdf files) into Salesforce however I am not able to drag a PDF from my Outlook email message into ...
1
vote
0answers
66 views

Save files using Chatter File

How could I save files using chatter files by having custom object as the ParentId. These files can't be stored in Attachment object.
2
votes
2answers
2k views

Can we open files/attachments in Salesforce1 without enabling Chatter?

It appears the only way to open files in Salesforce1 is via "Salesforce Files" - previously called, "Chatter Files" which is tightly coupled to Chatter. When creating Chatter files, it seems to piggy ...
2
votes
1answer
395 views

Is there a way to download chatter file IDs from the file storage?

is it possible to retrieve a list of file IDs of files that are in the chatter file storage? For the time being, I am only able to download the files after retrieve the ID from the chatter posts ...
1
vote
1answer
944 views

Best option to store files and show them in communities

What is the difference between CHatter files and Salesforce CRM content with regard to their usage in communities? What are known limits/ restrictions to use them in communities? To manage Salesforce ...
1
vote
1answer
52 views

Can I share files in Chatter just to 1 single person?

i would like to ask if I post a files in a Chatter group all members in that group will be able to see the files. Is there anyway that I only want to share the file to a single member or chatter user?
2
votes
1answer
985 views

Change file sharing settings of chatter file using the Connect API

I am able to use a file upload to post a file to the Chatter Feed of a custom object record using the following code: ConnectApi.FeedItemInput feedItemInput = new ConnectApi.FeedItemInput(); ...
4
votes
3answers
2k 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....
11
votes
2answers
11k views

How can I create a Chatter File via Apex?

From the Chatter tab I can go to 'Files' and then upload a file without attaching it to anything. I am wanting to know if there is a way to achieve the exact same thing via Apex?