Questions tagged [chatter-file]
The chatter-file tag has no usage guidance.
69
questions
2
votes
2
answers
2k
views
Mass export files from Chatter Feed and Chatter Comments
How to mass export files from chatter feed and chatter comments.I looked into the reviews of file exporter app but it looks like it is not supporting chatter attachments.Is there any other way to ...
4
votes
2
answers
943
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
1
answer
1k
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 ...
2
votes
1
answer
1k
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 (...
0
votes
1
answer
775
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 ...
1
vote
2
answers
10k
views
ContentDocument Object
I'm working on one scenario update description value in ContentDocument Object.
This my piece of code.
//Update Description value in ContentDocument object
List<ContentDocument> lstcd = ...
0
votes
0
answers
492
views
System.DmlException: Insert failed. First exception first error: REQUIRED_FIELD_MISSING, Required fields are missing: [Linked Entity]: [Linked Entity]
Updated the code here.
I am trying to override the standard file upload button functionality.
I have created a lwc on a VF page and overrode the 'Upload files' button in FILEs object.
As soon as we ...
1
vote
0
answers
1k
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 ...
1
vote
1
answer
2k
views
How to remove File Storage items in my Salesforce dev hub
We are currently using a dev hub to perform various bits of Salesforce integration testing. Part of this testing involves changing the Chatter profile picture and creating posts/comments etc.
I ...
1
vote
1
answer
2k
views
Uploading a file to Chatter - REST API
I'm trying to upload a file to Chatter files using the REST API but I'm getting the following error :
Binary data included but file attachment information is missing. If
providing rich JSON/XML ...
10
votes
1
answer
7k
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 ...
2
votes
0
answers
202
views
Multiple Files on chatter Feed is not showing when created from apex
I see Chatter post can allow multiple files to be posted at a time in Lightning. But from the below code in Apex, I'm only able to get one file on the chatter post.
List<ConnectApi.BatchInput> ...
4
votes
3
answers
25k
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.
...
0
votes
1
answer
103
views
File link appears when Chatter Feed is hidden and Page is refreshed
I have a requirement to hide the File Link in chatter feed. I have a VF Page and I am able to do this using the below code.
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"...
6
votes
3
answers
17k
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/...
8
votes
1
answer
3k
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:...
0
votes
1
answer
2k
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 :
[...
0
votes
1
answer
1k
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 ...
4
votes
3
answers
4k
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....
14
votes
2
answers
16k
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?
0
votes
0
answers
72
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.
11
votes
3
answers
7k
views
Is it possible to get a sharing link (to non SFDC users) from 'files'/'content' via apex?
A bit of background: I have a client that I built a custom model library for, and in this page they can select a group of models and email them (say instructions to the next gig or notify them of ...
1
vote
0
answers
70
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?
7
votes
2
answers
4k
views
How to share documents with customer community login users
So we need to share a number of documents with our customers who our accessing our community using the Customer Community Login license. The documents that need to be shared are VF pages rendered as ...
0
votes
1
answer
519
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 ...
0
votes
0
answers
118
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 ...
0
votes
1
answer
396
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 ...
2
votes
1
answer
517
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&versionId='+ v....
0
votes
1
answer
359
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 ...
1
vote
0
answers
4k
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 ...
13
votes
2
answers
2k
views
Can SOSL perform full text search on chatter files?
The Document sobject has an IsBodySearchable flag which controls if you can full text search it via SOSL.
ContentVersion has no such flag but I know that it is searchable in certain cases. However, ...
5
votes
1
answer
230
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
0
answers
734
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 ...
2
votes
1
answer
799
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
1
answer
464
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
...
8
votes
1
answer
6k
views
Preview Chatter File in Visualforce
I've found a lot of people talking about this but no real answers. What I am trying to do is simple just show a little thumbnail preview of a file in a custom component
SELECT ContentDocumentId FROM ...
6
votes
1
answer
4k
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
2
answers
857
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 ...
3
votes
2
answers
382
views
What is the SObject for a chat conversation?
I want to monitor chat conversation and want to check and store at admin side. so admin can see who doing chat to whom and archive the conversation
Thanks
1
vote
1
answer
770
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
0
answers
127
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
1
answer
845
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 ...
3
votes
2
answers
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 ...
0
votes
1
answer
153
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 ...
1
vote
0
answers
711
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 ...
2
votes
0
answers
42
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
1
answer
998
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 ...
5
votes
1
answer
222
views
Disable sending a chatter message which is sent to all users when sharing a file
I wrote a trigger on FeedItem to share a file. Salesforce automitcally sends a chatter message when sharing a file.
Is it possible to disable sending a chatter message and an email which is sent to ...
6
votes
1
answer
1k
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
0
answers
278
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+...