Questions tagged [files]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
13 views

Show button on related list tab in Lightning Page Layout instead of dropdown arrow

I've created the Files related list on my Lighting page layout, but instead of the Add Files button, it displays the dropdown arrow. Is there any way I can get it to show the button as it does in the ...
0
votes
1answer
43 views

Download file in lwc

I'm receiving a link to a file once the component is loaded, and i want to download it. html <template> <lightning-card> <div class="slds-align_absolute-center" style="...
3
votes
3answers
800 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
21 views

Validation rule on File Sharing button

I am trying to add a validation rule on File Sharing button through an Apex trigger. The trigger is working fine when a user is trying to share the file with any other User. But it is also stopping ...
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
2answers
1k views

External FTP File Transfer Activity Error in Automation Studio

I configured a Data Extract (Data Extension Extract) and a File Transfer (Safe House to External FTP which is also an SFMC FTP ). Unfortunately, File Transfer fails without giving a proper error. ...
1
vote
1answer
21 views

Is there any way to remove the option "Customer Access” from UI while sharing file attached to a record?

We don’t have either community or chatter enabled in our Org, but still seeing this option which will be misleading for the Users. I looked at salesforce help page but no luck so far! Appreciate ...
1
vote
1answer
37 views

Uploading File against Lead via REST API

I am trying to Upload the File against Lead via REST API. My understanding is that I need to use ContentDocument and then create Content Document Link against that Lead. However, I am unable to ...
1
vote
3answers
1k views

Community user cannot download file

I am using an old portal for my customers, with customer community user licenses. In the portal, my users should upload files and then download the files that they have uploaded. The portal is ...
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 = ...
3
votes
3answers
7k views

Display image which is stored in files

How can I display an image which is stored in files? For attachments I can use the code below, but it doen't work for files. <apex:image id="Stat1" URL="/servlet/servlet.FileDownload?file=...
0
votes
1answer
29 views

Any way to Query for LinkedEntityId from ContentVersion

Wondering if there is anyway to query for LinkedEntityId from ContentVersion? As i understand, ContentVersion looks up to ContentDocument which then looks up to ContentDocumentLink (could be wrong ...
0
votes
1answer
66 views

Bulk Import of Files to SFDC

In the distant past I have migrated thousands of files to Salesforce as 'Attachments'. I am currently on a project where I need to migrate thousands of files to Salesforce as 'Files' - this will be ...
0
votes
2answers
600 views

How to move all the documents to File to make them available in lightning

We have a requirement where we need to move all the documents to File to make them available in lightning. We tried to export all the documents using fileExporter (AppExchange app), but we are facing ...
7
votes
3answers
479 views

Winter 20 breaks communities guest file upload

We have a community which has a lightning:fileUpload component for guests to upload anonymous file attachments to their created records. The guest user creates a new record via a global action which ...
1
vote
1answer
670 views

Link to a library directory in Files in Lightning Experience

I am doing a Lightning remediation for a client moving over from Classic. They have a home page component that has a link pointing to a library directory in Files, not a specific File, but just a ...
0
votes
2answers
39 views

Exclude Subscribers from a CSV file in Marketing Cloud

I have a CSV file containing duplicates contacts. We would like to identify those duplicates in our DE to exclude them in an email send. Do you know any solution for this issue? Thanks, Grégoire
0
votes
0answers
12 views

Customize “File List” Community component to remove tabs like “Shared with me” and “Recent”

I have a requirement to allow community users to upload files to specific Salesforce Libraries, which I am currently satisfying using the "File List" community component. However, I only need users to ...
2
votes
1answer
2k 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 ...
1
vote
1answer
35 views

How to preview the file attached in the ContentVersion

We have a requirement to preview the related file in the lwc component. Something which is similar to a modal dialog which displays the file if it is a known format to the browser (like pdf or jpg). ...
0
votes
0answers
409 views

Add Upload File button to a custom object

I am working on an assignment where I built a custom object on top of files (ContentVersion, ContentDocumentLink, ContentDocument). Since the customizability of files is limited in Salesforce, we are ...
0
votes
0answers
17 views

File “Customer Access” Permissions

In Winter'20 there was added feature to allow "Customer Access" for files. Some of the users need to have access to it. Maybe someone knows or played with that? For the target user, this is just ...
2
votes
1answer
444 views

Lightning Web Components file preview does not work on mobile version

I created a component in LWC which uses standard Salesforce file preview. It is perfectly working on desktop but nothing happens when I press file name on mobile version. My html code is below: &...
2
votes
2answers
24 views

Copy Attachment to File Issue

On lightning, I changed the File Settings and checked on this feature: “Files uploaded to the Attachments related list on records are uploaded as Salesforce Files, not as attachments” In my code, ...
2
votes
0answers
122 views

Can Community Guest users delete the owned file?

Much appreciate if anyone can help me with the below. I have a community where guest users update some information and upload files with a flow. In the flow, users can delete files they uploaded once ...
0
votes
1answer
30 views

Salesforce Files Settings - Expected Behavior?

We were looking to migrate to Files as a first step to prep for a Lightning migration and noticed a potential useful setting: "Files uploaded to the Attachments related list on records are uploaded ...
3
votes
1answer
75 views

Is it possible to upload files as a guest user in a community?

Is it possible to upload files as a guest user in a community? I am using a lightning web component lighting-file-upload component with a case's id as the recordId. The file upload works for ...
1
vote
0answers
29 views

Restricting Salesforce Files to always be in a ContentWorkspace

Ive tried to figure out how to always require uploaded files to belong to a Library(ContentWorkspace) in Salesforce Files, since the UI/Navigation is not good at all. After some backtracking SOQL ...
0
votes
0answers
18 views

Salesforce Administrator without files access

I have a unique scenario where there would be a user who should have admin permissions in an org but should not have access to files and attachments on records. Any way this could be achieved? Bonus ...
0
votes
1answer
486 views

Lightning File Uploader in communities as external user?

Our team is trying to create a generic file uploader lightning component to use as a base component for a set of forms that need to be displayed in a community, but we keep finding issues or ...
1
vote
1answer
507 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 ...
0
votes
1answer
510 views

Remove File Delete Permission

I have googled a lot but do not found any supportive document for guidance. I have a standard Files upload option under Task(Standard) object. We have a scenario like users will not have permission to ...
0
votes
2answers
32 views

SQOL Query AND Title is failed to pull records

I am using Conga and I am trying to pull files that contain SPE in their tile This query will find the file records successfully SELECT ContentDocument.id FROM ContentDocumentLink WHERE ...
2
votes
1answer
33 views

Is it possible to customize the error message that appears when the user is unable to upload a file?

I'm trying to make a trigger that prevents the user from uploading a file that is larger than 100mb. I'm doing this by checking the file size in the ContentVersion trigger and using addError. However,...
1
vote
2answers
65 views

Converting attachment to files, heap size exceed exception

I am trying to convert our existing attachments to contentVersions using batch. But problem I am facing is that some of the attachments are of size greater than 12Mb. So when I try to run my batch I ...
6
votes
0answers
245 views

How to upload larger size file using input tag of type html in LWC

I have implemented custom file upload component using input file html tag and rendering it as browse file button. The issue with component is:- When trying to upload file more than 4 mb of size, i ...
7
votes
1answer
2k 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 ...
1
vote
2answers
613 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 ...
1
vote
1answer
178 views

querying and creating folders/files from within a library

I have a library called Test, which has a folder in it called 123. The folder contains a single pdf file. I'm able to successfully query that file using the following SOQL statement. SELECT Id, ...
1
vote
1answer
715 views

Files Connect - Can't access external source

When attempting to test File Connect (connecting to Google Drive) as another user, I'm getting the error message Can't access external source External data source is unavailable because of an ...
1
vote
1answer
274 views

Enable Query All Files permission

I see from the release notes that you can allow a user to query all files, even ones they don't own. I've having trouble giving myself that permission. I have a system admin profile, with view all ...
1
vote
0answers
41 views

Search in Salesforce Files Preview

When opening a document (pdf, doc, ppt, xlsx, etcetera) that has been uploaded to Files in Salesforce; it is not possible to search within the document. When pressing CTRL+F in the overlay preview, ...
0
votes
0answers
38 views

How do I customize the zip file name when downloading multiple files?

I know how to download a single file from salesforce. I just open a new tab with the url /sfc/servlet.shepherd/version/download/068xxxxxxxxxxxxxxx/. Likewise, I know how to download multiple files ...
0
votes
1answer
439 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 ...
0
votes
1answer
24 views

How to make files Archived using apex ? (isArchived = true)

I am in one of the requirements where I need to set IsArchived = true when user uploading any files using Upload files option. I thought apex trigger will work here but it doesn't trigger ...
0
votes
0answers
51 views

Visualforce page rendered as PDF saving to salesforce files (Content document) but failed to reload error on opening pdf

Rendering VF page as PDF. Attachment pdf is working fine in classic. On opening pdf in classic view PDF is correctly opening but when i switch to lightning then on click of button pdf is saved in ...
0
votes
0answers
11 views

failed to save: asset file cannot be found in namespace

I'm trying to use the $ContentAsset value provider, and have successfully done so in one Sandbox using zip files. When I attempt to duplicate it in another sandbox, however, I get this error: Failed ...
1
vote
2answers
806 views

LWC file upload issue

I use the sample below to do the upload file in LWC: html: <template> <lightning-file-upload label="Attach receipt" name="fileUploader" accept={acceptedFormats} ...
0
votes
2answers
53 views

Upload a file via Apex

How can i upload a file from my client PC via Apex ? I need it for a test class so i cannot make api callout. I try this but without success String yourFiles = 'Lets assume this is your binary string ...
6
votes
1answer
984 views

Files: Why ContentVersion /sfc/servlet.shepherd/document/download/ sometimes sets Content-Disposition=attachment and sometimes =inline

I need to view and PDF file stored as an attachment inside an IFRAME in this context: Visualforce: Why the display of an PDF-File inside an IFRAME works on a Sandbox but not in Production? Inspecting ...