Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

The tag has no usage guidance.

0
votes
1answer
16 views

Community Users are not able to view files

We have moved all our Notes and Attachment to FIles in lightning, Now none of our Community plus users are able to view the files from their community login. We have added files related list on page ...
0
votes
0answers
31 views

Cannot preview PDF publicly shared file

I have a couple of PDF files that have public links that are no longer showing a file preview.  Any thoughts why or what I can do to fix this problem.  I have refreshed the preview link & also re-...
0
votes
1answer
26 views

How can i upload files

I have created simple component to upload files with following code: <aura:component implements="force:appHostable" controller="BeetleEyeAssets"> <aura:attribute name="accept" type="List" ...
2
votes
1answer
36 views

Upload Attachments to Files Related list using Apex

When user attaches files on Notes and Attachments related list from Salesforce UI then files gets attached to Files and Notes and Attachments related list. But when I do it from vf page/apex then it ...
2
votes
1answer
34 views

How to Upload a File to a specific Library Folder using Apex?

I am trying to save a Visualforce page as a PDF file to a Library folder in our Salesforce org. I have been unable to figure out how to save this new PDF file to a specific Library folder. I tried ...
2
votes
0answers
22 views

Files not attached when forwarding emails (Classic)

In classic when you forward an email containing attachments, they are automatically included on the email; you see them below the email editor in the Attachments section. This is not the case for ...
0
votes
1answer
45 views

Disable access to “Delete”, “Edit”, “Upload New Version” on the file previewer

I use lightning:fileCard and e.lightning:openFiles components in my lightning component (that I use inside a community) In 1 stage on my component, I wish to display a file preview, and to not give ...
1
vote
0answers
11 views

Dropbox File Management Alternative for Salesforce

Trying to find an external file management app like Dropbox which is integrated with Salesforce. Unfortunately, Dropbox for Salesforce has some really bad reviews in Appexchange(2.7 rating :-( ). What ...
0
votes
1answer
13 views

APEX Class to transfer Files to External Cloud Storage

Can anyone point me to the SF documentation to write/ transfer files uploaded to SF to an external cloud storage system e.g. GDrive. I have got an OAuth Script with all the client Key and Private Key ...
0
votes
1answer
35 views

Streaming API to transfer FILES to online cloud storage

Using the SF documentation I have created a custom object with the FILES related list. Using workbench I can successfully see that it receives a message when a new record on that new object is ...
2
votes
4answers
61 views

Sending File to Apex class from Lightning component

I need to send a file of max size 25 mb to my server side controller function from lightning component. I need to pass values to server, create record and then assign the file to it I am using of ...
0
votes
0answers
10 views

Upload to Files from Web 2 Lead

We have a custom Web2Lead process and are currently using the native Attachment REST Web Service to upload files and attach them to the Notes and Attachments object. We now require to upload them to ...
0
votes
0answers
31 views

Write files to Google Drive with External Data Storage

Using this tutorial I have connected my SF instance to Google Drive. I can only view the files --- is there a way to write to drive too? If it can be done, can it be added on a related list on ...
0
votes
2answers
35 views

Option to share a file uploaded privately with a Community User

When i upload a file under Files Tab we have share option. But we can only share with internal users...but not with partner users. I was wondering if its possible to share file with a partner ...
0
votes
1answer
21 views

Disabling 'Populate Custom Fields When Uploading Files' feature

I'm using lightning:fileUpload component to load files, and I came accross a new, unnecessary feature. Recently when adding file, the button on popup window displaying uploading status changed from '...
0
votes
1answer
58 views

Adding attachments in apex, convert the code to add Files

I was wondering if there is a simple to solve my issue, previously in apex one of the automation process was adding attachments from email, please see the code below. private void ...
0
votes
1answer
25 views

Can we export data extension records daily and upload on a 3rd party SFTP?

Can we export data extension records daily and upload on a 3rd party SFTP? I understand that file can be uploaded to marketing cloud FTP BUT in this case, file needs to be provided to 3rd party and ...
0
votes
1answer
42 views

Disable sharing of files through Public link

In winter 19 release, salesforce came up with sharing files to anyone(those who has view access) using "Public Link" option. However, I don't want this option to be visible/enabled for my users. Can ...
0
votes
1answer
29 views

How do I build a related list against a Files Library (in Lightning)

I want in the related tab of a record to have a Library related list shows all the files in a library? Is that possible?
0
votes
0answers
13 views

Get Id of File from Record Related List

I am trying to query a record for its list of File Id's from its related list. Here is the query I am using: List<Example__c> objects = [SELECT Id, (SELECT ContentDocumentId FROM ...
1
vote
0answers
10 views

Need clarification for the Copy sharing mode of Files Connect

We want to connect Google Drive as a Connected Source. We want also share files with external users. That's why Reference sharing mode is not an option in our case. While reading the documentation: ...
2
votes
1answer
56 views

Need to give guest profile access to documents

I need to give the guest user profile access to view files/documents (PDF, Excel, Word, etc.). I have a public Customer Service/Napili community with Knowledge set up. Guest users can see the ...
0
votes
1answer
82 views

What's the difference between “Files” and “Notes & Attachments” related Lists? [duplicate]

What's the difference between "Files" and "Notes & Attachments" related Lists? They seem to be a carbon copy of each other whenever I upload a file to one or the other.
0
votes
1answer
37 views

What event fire when you attach a file/attachment on the record page?

I've created a lightning component that shows a table of all contentversions related to the record detail page you are on. However, if upload/add a new file using the "Files" related list, it doesn't ...
2
votes
1answer
45 views

What is the difference between these 2 download URLs?

I have seen that developers use 2 different formulas for the users to download a file/attachment. 1st - HYPERLINK("servlet/servlet.FileDownload?file=" + recordId , Name + "<valid ...
1
vote
2answers
108 views

Unable to extract bulk ContentVersion and ContentDocumentLink data using Salesforce API

Use Case: Transfer existing (and OOTB) Files that are linked with couple of custom objects (CO 1 & 2) to another Custom object (CO X)? The new custom object (CO X) has look up fields for CO 1 &...
0
votes
2answers
47 views

Image dimensions validation with Lightning FileUpload component

We need to give an ability to user to upload an image related to Account in a Lightning Component. This can be easily done with standard lightning:fileUpload component without any need to send file ...
1
vote
0answers
19 views

Share files publicly via Saleforce Files

BACKGROUND We are now deciding if storing files inside Salesforce would give us any benefit comparing to 3rd party providers. The main requirements are (1) allow big files (up to 1 GB); (2) Allow for ...
0
votes
0answers
47 views

Is downloading multiple files officially supported by Salesforce in lightning?

The url "hack" to use /sfc/servlet.shepherd/version/download/ has been documented in a salesforce blog about visualforce pages showing images, however I can't find anywhere where this is officially ...
1
vote
1answer
25 views

Getting info on files that were shared between dates [closed]

I'm fairly new to Salesforce API, I'm trying to get information on files that were shared between dates. I would like to know how to retrieve this info using REST API. Is it even possible to query ...
1
vote
0answers
21 views

Lightning Files Unencrypted Preview Link

Back in Classic we can preview a PDF attachment by plugging in its ID into this URL: https://DOMAIN.content.force.com/servlet/servlet.FileDownload?file=00PFILEID Anyone know of a way to do this ...
1
vote
0answers
28 views

How do I add a picture to a Contact record from File upload

I would like to add a picture to a Contact by uploading it to the Files related list and have the file picked up automatically, i.e. if we use the same file name for each Contact, "ContactPhoto.jpg." ...
0
votes
0answers
11 views

Can't change Sharing type to “Set by Record” on File records

Im trying to change the Sharing Type on a File related to a specific record. The goal is to let all users with access to the record to have access to the file. According to this info, the only thing ...
1
vote
1answer
404 views

Create a Lightning Component with Server-Side Apex Controller Challenge

I have executed as outlined in the trailhead document https://trailhead.salesforce.com/projects/salesforce_developer_workshop/steps/creating_lc_with_apex_controller but while checking the challenge , ...
1
vote
0answers
61 views

Print all iframes in Lightning Component

We display vf pages rendered as pdfs in a lightning component which generates these documents. We would like to implement a print all button that would print the contents of all the iframes. I have ...
1
vote
1answer
54 views

External user upload file

We're trying to allow Customer Community Users to upload files using our portal. When I try to use the REST API to upload a file I get a 403 Forbidden response. The response body has message":"API is ...
1
vote
0answers
11 views

How to add a custom pop up on click of 'Add Files' and 'Upload ' button on standard Files Related list on Salesforce Objects

Below is the detailed requirement- As a user I want to be able to add attachments to objects in Salesforce that have attachments enabled. Due to legal requirements the user has to confirm that he ...
2
votes
1answer
43 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
1answer
47 views

Test Class for Attachments to Files on Task

I have written a basic trigger which converts all the attachments as files on the task object. I am having difficulties to achieve the test class and below it is. My test class is compiling but not ...
0
votes
1answer
19 views

How can I restrict the upload on Files based on Record Type?

I have a Contact Object with two record types (Client & Intake). I am enabling the "Files" related list to both page layouts, however, I only want the Intake record type to have the "Upload Files"...
3
votes
1answer
168 views

Generate a Public Accessible link from ContentDocument

My Client wants to upload Image files from Account and generate a link for this image file and save it in a custom field on Account. This link should be Public Accessible (access from outside without ...
2
votes
0answers
135 views

How can you insert a Salesforce File with Collaborator ShareType?

I am currently trying to insert a Salesforce File attached to a custom Invoice object with the Collaborator (C) permission, as described on the Salesforce Documentation. The code was originally set ...
0
votes
1answer
21 views

Why deploy.zip file does not deploy metadata when archived using java.utils.zip?

I have created deploy folder with all correct metadata definitions. If I compress the folder using java program and try to deploy it using DeploySample java code, get success in console but no ...
0
votes
0answers
25 views

Related List Files vs Notes & Attachments [duplicate]

users want me to add a related list to a custom object to allow you to add attachments. What is the difference between the "Files" and "Notes & Attachments" related list?
0
votes
0answers
18 views

Best possible approach(inbuilt sf method, iframe, 3rdpart js libs) to display pdfs for ipads using Visualforce

We have scenario where visualforce pages need to display pdfs in ipad browsers. We were able to display attachments but not files. Is there a way/solution to display pdfs in ipads that works with ...
0
votes
0answers
27 views

Not able to access Files in visualforce page exposed via site

I have a vf page designed to show list of custom object records and Files(image) related to that custom object record. Everything with vf page works and when i preview the page i can see the files ...
4
votes
1answer
26 views

Getting ContentType for ContentDocuments?

The ContentDocument and the ContentDocumentVersion do not store a ContentType (MIME) like attachments did. I am trying to pass documents using an API and this information is needed to properly pass ...
2
votes
1answer
27 views

OpenFile command in Portal Not Working Same after Summer '18 upgrade

I have links in my community portal that launch files. Since this weekend's upgrade to Summer '18 the files do not automatically launch. Instead, users are taken to a file details page where there ...
0
votes
0answers
132 views

The SVG file preview player does not show the download option

While the SVG preview player is opened from the lightning:filecard preview, users are not able to see the download option. Is it possibly because of a user permission setting? <aura:attribute name=...
3
votes
1answer
26 views

Using Apex or API, how to determine who has access to a Document Folder?

In Salesforce UI, I can assign access to Document Folders. How can I determine who has access to a Document Folder with Apex or API? I thought I would find an object like "FolderMember" or similar, ...