Questions tagged [files]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
2answers
3k views

Sharing File attached to an Account in Community

I'm trying to find a way to let Customer Community Plus users access the Files attached to an Account. We are sharing Accounts using manual sharing rules created by Apex (yeah, Apex managed sharing ...
1
vote
0answers
190 views

How we can upload documents Into a Salesforce CRM Content Personal Library using .net API?

We are using trail account of sales force developer edition . We are trying to upload attachments into sales force account using REST API , In this scenario we can upload attachments into different ...
0
votes
1answer
253 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 ...
2
votes
0answers
138 views

SOSL query on ContentDocument [closed]

I have a requirement to search within files. To get that working, I have a SOSL query on ContentVersion. It seemed to work as expected when I tested as myself, however... I myself seem to get the ...
2
votes
0answers
1k views

How to create an Archive/Zip file with APEX

I want to create an archive/zip file with APEX, my requirement is to extract all the documents related to an account and archive it as a zip file. Files could be images, text word or CVS etc. I ...
3
votes
2answers
789 views

Get the image in file - lightning experience

I have to display an image in a lightning component. So in Salesforce classic I put this image in an attachment related to an object, but in lightning experience there is no attachment, or I didn't ...
0
votes
1answer
749 views

SOQL queries for the Files (owned / shared / following / libraries)

This 'Files List' component in Communities is pretty nice. But I would like to create a modified version. Content Data Model Could anyone help with the queries or filter criteria? Ill be working ...
2
votes
1answer
4k views

Where are the documents from the Documents tab in Lightning?

Our org has switched to Lightning recently and, as expected, there is no Documents tab. From what I've read the equivalent to Documents in LEX is Files. I would like to know where are the actual ...
1
vote
1answer
48 views

do all orgs have 'content' package requirements

In our managed package we've started using Salesforce Files, we now create content version records. When building the package now under Package Requirements its showing Content as a requirement that ...
0
votes
1answer
93 views

Is it posible to use Salesforce Files with community portal?

I need to use salesforce files in the community portal (with the Napili template). Is it possible to display salesforce files in the portal. and is it possible to query the files object?
5
votes
1answer
171 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 ...
6
votes
7answers
9k views

uploading files in contentVersion using lightning component

I am developing a lightning component to upload files in the contentVersion object. I used this site as a reference: http://peterknolle.com/file-upload-lightning-component/ I was able to ...
3
votes
1answer
5k views

Files as email attachment from Apex

We have a requirement to send email with attachment. When a Opportunity stage is changed need to send a email to opportunity owner with attachments(Files added to that opportunity). This work fine ...
5
votes
1answer
677 views

How to save large files in Salesforce with synchronous Apex?

I've created a Visualforce page that allows users to drag and drop files and have them uploaded to Salesforce and then displayed in a list immediately. To do so, my VF page sends the file in chunks ...
1
vote
1answer
506 views

How do I find/delete old knowledge article file attachments?

We have knowledge articles that contain attachments (e.g. PDFs). Over time, we'll update the article and replace the attachment with a newer version. It appears that old links to older attachments ...
-1
votes
1answer
2k views

Open PDF in browser instead of Downloading

Using sfc/servlet.shepherd/version/download/{!id} in URL to download PDF files from ContentVersion in a public site. Is there anyway to get a PDF file to open in a browser instead of Downloading it ...
3
votes
0answers
395 views

The user keep geting invalid session when trying to upload files

We enabled option on Salesforce Files Setting: Files uploaded to the Attachments related list on records are uploaded as Salesforce Files, not as attachments . After that, user keep getting ...
4
votes
3answers
6k 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/...
0
votes
1answer
87 views

Attach Files To A User Record

How would you go about allowing attaching Files to a User record (related list, preferably)? This is a new request I never previously considered. The only way I can think of is to create a simple ...
3
votes
1answer
421 views

Can we programatically search in Files for particular keywords

If we go to Files tab in salesforce and there is search functionality which searches within the files content and not just the name of the files and displays the result. For eg. if we type in ...
2
votes
0answers
794 views

Display image from “Files”/ContentVersion in VisualForce [duplicate]

I'm working on a project where I'll be using VisualForce to render custom PDF service reports. So my page will take in the ID of a Service object (from Field Service Lightning) and populate all the ...
0
votes
1answer
43 views

Is there a way in Apex how to pass the information between two classes when the code in the second class will be invoked few days later? [closed]

I have a custom buttom which invokes my custom method. I need this custom method to save data or information which will be used few days later, for instance after five days. The infromation will be ...
1
vote
1answer
434 views

Retrieve ParentID on insert of file

How to retrieve AccountId on insert of file. system.debug('LinkedEntityId $$$$'+LinkedEntityId) always gives OwnerId. But after insert of file, I can retrieve two rows from below query on ...
0
votes
1answer
375 views

Preserving file creation date, and last modified date, when uploading files to ContentVersion

I am uploading files to SalesForce from a legacy system, and what to retain the original file creation date. On the ContentVersion none of the date fields are writable, is there an obvious work ...
0
votes
1answer
286 views

Is there anyway to view the Files that related to the Account from different place?

In Release Notes winter 16; Files Related List to the record is available.Refer to here .Where those files are stored?Is it inside ContentDocument?I wondering is there any other way for to view all ...
6
votes
2answers
6k views

How to query a file uploaded as an attachment in lightning experience?

According to the release notes Lightning Experience Limitations, attachments uploaded in lightning aren't the same as attachments uploaded through salesforce classic. How can i query for the ...
4
votes
5answers
2k views

Document: You don't have permission to share this file

I am trying to upload a file from salesforce sites into Files and then relate it with a record using VF page. i am able to upload the file and while creating a ContentDocumentLink i am getting this ...
6
votes
1answer
14k 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
265 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
10k 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
609 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
20k 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
113 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
2k 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
8k 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
7k 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
582 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
218 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
69 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
71 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
766 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
25 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
435 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 ...