Questions tagged [files]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
6
votes
1answer
13k views

Difference between File and Attachment in SalesForce

We have been using Notes and Attachment to store files related to the record. I also read about Files in salesforce. How are Files different from Attachment? Are there any limitations or benefits of ...
2
votes
2answers
4k views

File Upload in Lightning Component with lockerservice on

I have this standard JavaScript code implemented in Lightning component to upload Files which works perfectly when LockerService is disabled. Component: <aura:component > <input type="...
3
votes
0answers
262 views

Rolling Back Enhanced Notes and Notes Reporting

My client has enabled Enhanced Notes in their org, but are now experiencing all the reporting limitations associated with new feature. They want to pull reports with actual text entered in note, but ...
0
votes
1answer
41 views

Is it Possible to update body of file before uploading in salesforce using trigger?

Need to update the body of the file before uploading into salesforce. Here is the sample code i am using it for updating attachment trigger SetTitleToAttachment on Attachment(before insert) { for ...
6
votes
3answers
8k 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 ...
1
vote
2answers
517 views

What is the best way to hyperlink to files. such as .pdf files, when using community builder?

We are converting our agency's public website over to a community site using the Napili template, but I am struggling to make files available. Our old website has literally hundres of .pdf files that ...
4
votes
1answer
18k views

how to upload files using Apex code

I am creating a VF page to upload files to to the Files related list of an object : I found out that files object is ContentDocument object. I am figuring out how I can create this ContentDocument ...
1
vote
0answers
112 views

Access all files using SF1 and Lightning

I am trying to create a file upload component which can upload a file (type pdf / doc / docx etc) from my mobile SF1 app. I am using - <input type="file" class="file" aura:id="file" /><br/&...
1
vote
1answer
1k views

How to share the uploaded salesforce file automatically [closed]

How can I share a file automatically as soon as they are uploaded? Ineed to write a trigger but on which object?
6
votes
1answer
7k views

How to query all files attached to the Opportunity

I know how to query all the attachments related to the opportunity, but how to do the same for files attached. Seems like a file is a part of a content library.
4
votes
3answers
6k views

Migrate attachments to Salesforce Files

One of our clients has a requirement to migrate attachments to Salesforce Files. They have also enabled this option from Winter '16 to allow file uploads to goto salesforce files instead of ...
3
votes
0answers
541 views

How do I open & save a .ics calendar file from Salesforce via email directly to Outlook (or others)?

I have an HTML email that I need to send to contacts with an option to book a calendar event directly from the email. I created the event in Outlook, saved it as a .ics file which I then uploaded into ...
0
votes
1answer
201 views

Upload file linked with Opportunity record

I want to create VF custom page to upload files, which are bigger than 25mb, so i can't use Attachments. I have found out, that when i upload file from "Files" tab, i can query it by SELECT id, ...
0
votes
1answer
67 views

File Transfer End Point Configuration

After spending hours trying to resolve this issue with SFMC Support, we have an issue whereby when specific users on our account configure a "File Transfer" the end point of where the file decrypts/...
1
vote
0answers
70 views

Accessing “Salesforce Files Settings” in Apex

Is it possible to see in Apex if an org has the following setting enabled? Files uploaded to the Attachments related list on records are uploaded as Salesforce Files, not as attachments It doesn'...
2
votes
1answer
19k views

Warning propmt on downloaded Excel: File format and extension do not match. The file could be corrupted or unsafe [duplicate]

I want to develop MS Excel download feature for some of my data, thus I created a VF page with following attributes on the apex:page tag. contentType="application/vnd.ms-excel#somefile.xls" cache="...
1
vote
2answers
1k views

How to attach file to Feed Item in SOAP API v36

Can someone give me an example of how to attach a file to Lead using FeedItem in SOAP for version 36 since ContentData and ContentFileName fields are obsolete? My previous code was FeedItem post = ...
0
votes
0answers
732 views

Uploading Large Content Version via REST API

We are working for one of our client to access the Salesforce REST API for uploading Files/Content in Salesforce Libraries. Each File Size is nearly equal to 1.5 GB. I see the Limits of Content ...
0
votes
1answer
24 views

How to Restore Chatter Files?

I have exported all the Files from the Salesforce and I have also created the Developer Sandbox. Now I want to upload it to the Sandbox. Now my question is How can I upload the Chatter Files, I don't ...
1
vote
1answer
38 views

How to get feeds on Editing of File in Chatter?

I want to know that, is there any way to get feeds on changes of Files. I am getting feeds for file creation and uploading new versions; however I want feeds/notifications on File name editing/...
1
vote
2answers
53 views

Can we attach salesforce file attachment to records by scheduler or anyway?

I am trying to find workaround for mass uploading files and attach it to records based on some unique number. Example:Account with pan number-12345 ..when I upload files to salesforce file it should ...
1
vote
2answers
409 views

How to enable Salesforce File Sync?

I have been trying to enable how to Salesforce File sync in my Salesforce developer org but with no success. Things what all I tried so far: Navigate to Setup -> Chatter -> Setting but there was no ...
3
votes
1answer
1k views

Help with Setup of Files Connect for Google Drive

After going to a session at Dreamforce where they demo'd Files Connect for Google Apps, I'm now trying to setup Files Connect in our sandbox so I can try it out myself. I've followed the instructions ...
0
votes
1answer
25 views

Share folders via files sync

I need to share multiples files organized in folder structure. If and how is that possible with with files sync? So people can sync multiple files organized in at certain structure. I dont find any ...
0
votes
1answer
494 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 ...
1
vote
0answers
40 views

Different result with the same search keyword on search all files

Am having some problem with search (number 3 in picture below). I have two users, one from country A and another from Country B When country A do a search on search all files, for eg testing file, ...
1
vote
1answer
661 views

Is there a way to share private chatter files to users who have access to given account?

Is there a way to share private chatter files to users who have access to given account? So I mean if users have access to account then they should be able to see and update those files but if users ...
31
votes
7answers
11k views

Obtaining all ContentDocument records using SOQL

According to the Salesforce documentation on ContentDocument Users (including users with the “View All Data” permission) can only query files they have access I find this very strange. Why would a ...