Questions tagged [chatter-file]
The chatter-file tag has no usage guidance.
68
questions
0
votes
1
answer
224
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 ...
0
votes
1
answer
51
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"...
2
votes
0
answers
147
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> ...
0
votes
1
answer
330
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
0
answers
47
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
1
answer
849
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 (...
4
votes
1
answer
489
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
0
answers
68
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?
1
vote
0
answers
831
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
1
answer
1k
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 :
[...
9
votes
1
answer
6k
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
0
answers
108
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
1
answer
356
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
395
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
1
answer
287
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
0
answers
2k
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
1
answer
530
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 ...
4
votes
3
answers
18k
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
1
answer
203
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
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 ...
1
vote
0
answers
619
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 ...
6
votes
3
answers
14k
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
1
answer
704
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
408
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
1
answer
3k
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
1
answer
662
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
112
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
758
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
1
answer
114
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 ...
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:...
1
vote
0
answers
596
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
2
answers
8k
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
0
answers
38
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
777
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
1
answer
513
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
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
268
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
0
answers
435
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
2
answers
491
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
0
answers
217
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
0
answers
370
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
2
answers
710
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
0
answers
70
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.
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 ...
2
votes
1
answer
424
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
1
answer
1k
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
1
answer
67
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
1
answer
1k
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
3
answers
3k
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....
13
votes
2
answers
15k
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?