Questions tagged [files]

The tag has no usage guidance.

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

Thumbnails on library subfolders in salesforce community

I want to display thumbnails on library file subfolders on the community. Is there any way to do this with standard functionality (or with other solutions)? I'm aware that you can add thumbnails to ...
0
votes
0answers
10 views

File source in salesforce

Is there any way from which we can find out the File source. My requirement is to create a case on opportunity only when the opportunity contains a docusign attachment on it which is signed by the ...
0
votes
1answer
39 views

How to store huge text in Salesforce record

I want to store the content of a small book in a Salesforce record. I want to make the text to be searchable by the Standard Salesforce UI and via Apex and SOSL and display it in Lightning UI. I know ...
0
votes
0answers
8 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 ...
0
votes
0answers
24 views

Salesforce : File attachment name issue

I have an issue with attaching files to a custom object that we created. The file attachment is part of the default related files we have in salesfore. The issue happens with there are multiple dots (....
0
votes
0answers
43 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
32 views

SOQL all files in folder

Using Files, is that possible? I've tried: SELECT Id, (SELECT Id FROM ContentVersions) FROM ContentFolder SELECT Id, (SELECT Id FROM ContentDocuments) FROM ContentFolder SELECT Id, (SELECT Id FROM ...
0
votes
0answers
19 views

Moving “Notes & Attachments” from one instance to “Files” in another

Our org is undergoing a migration from traditional Sales Cloud to FSC, and we are looking to take advantage of the new SF "Files" storage standard. What is the best way for me to migrate Notes & ...
0
votes
0answers
20 views

Users are sometime unable to select a file using <input> in a lightning component

I got a lightning component that uses to allow users to load files on Salesforce. It has always worked fine (for months) until about a month ago (end of April, first reports). Files are in .doc or ....
0
votes
0answers
21 views

Restrict the input type = file to capture images through camera only in lightning components/sf1 app

I have requirement where I have to restrict the image upload from SF1 App to camera only.I have tried using below: <input id = "image" type="file" accept="image/* capture=camera" capture="camera" ...
2
votes
2answers
149 views

Display Salesforce File in lightning component

I see from this question that you can display an image in a lightning component. Will this work for a pdf file? Using the exact same code, it doesn't appear so. I did try using lightning:fileCard to ...
0
votes
1answer
64 views

Downloadlink not working for Guest user site

I have created a link on a visualforcepage for Guest user.The link shows correctly with the correct id. When I try to download the link a new page is opened with the error: urlsite/ex/...
0
votes
1answer
40 views

How to generate an external downloadlink for files

I have created a visualforce page (site) with a dowloadlink from files. I can use this when I am logged in into Salesforce. I want to achieve this for external users by a site. In salesforce It is ...
0
votes
0answers
26 views

Attachment's Name field changes after converting to Lightning Files

I am using the tool Magic Mover to migrate Classic Attachments to Lightning files. However, after conversion of an Attachment to a Lightning file, the Attachment's 'Name' field changes. The ...
3
votes
1answer
53 views

Create and Link Document to multiple records using rest api

From the docs I've successfully been able to create a document in Salesforce using Inserting a New Document. I'd like to be able to link this document to multiple cases. From what I understand, it ...
0
votes
0answers
18 views

Why I Cant see 'Upload Files' button in Mobile?

I have a lightning community and I can upload files from the computer: When I enter with the same User from web-browser but from Mobile I cant see the upload button:
1
vote
0answers
59 views

ContentVersion file not viewable to Guest Site User

I have Salesforce Files associated with a Contact that I'd like to pluck out the ContentVersion Id in order to display the image on a public-facing Visualforce page (via Sites): <!-- This is ...
3
votes
1answer
124 views

Read-only permissions on Files

When a user is looking at a case or contact, I'd like them to only see Files associated to the record, but not have the ability to upload a File. Right now, the Standard Files Related List allows for ...
2
votes
1answer
27 views

Files and Libraries As Lightning Component

I want to include a Visualforce component on a Lightning Record Page that routes to a specific file library. As neither Files nor Libraries are Objects, I am having some trouble developing this ...
2
votes
1answer
26 views

Is there a way to hide Files from 'Files & Attachments' related list?

I think this is impossible but is there any way to hide Files in Notes & Attachments relatedlist of classic view? We moved only Admins to Lightning and wanted to roll out to other users slowly. ...
1
vote
0answers
37 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 ...
2
votes
0answers
107 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: &...
0
votes
0answers
56 views

How to permanently delete Salesforce File ID

Currently have an upload system using Lightning components, here's the code: <lightning:fileUpload name="additionalFile" label="Upload up to 4 additional photos to include in your campaign page ...
0
votes
2answers
37 views

Which object should be used in storing files?

The Attachment object looks like the correct choice if you have a file you want to relate to only one record. ContentDocument with ContentDocumentLink looks good if you have a single file you want to ...
2
votes
0answers
52 views

How can I allow the user to Populate Custom Fields When Uploading Files?

Update: I managed to get the dialog to display but the implementation feels like a bug workaround. See update below. How can I get this Add File Details dialog to display allowing the user to add ...
0
votes
2answers
74 views

How to make a Salesforce file private using Apex

My requirement is to make a Salesforce file private using Apex. I tried to update the PublishStatus field (on ContentDocument), but this field is not writable. Any idea?
0
votes
0answers
40 views

View State Error Uploading Files

I have a visualforce page that allows for uploading multiple files at one time (up to 10) I have tested it several times in the sandbox and had no issues. However, I am now getting intermittent view ...
0
votes
0answers
16 views

All Files Link not visible in Lightning

We wanted to convert the Documents to Files as Documents are not available in Lightning. The Documents were created inside a folder and were shared with all the users hence, we wanted to provide same ...
0
votes
0answers
27 views

Android SDK FileRequests appends incorrect base to path for “connect/files”

Salesforce SDK version: 7.0.0 API version: v42.0 Devices: only on all Androids I have some photo document IDs that I can verify exist. They are downloadable on iOS using the exact same strategy, ...
0
votes
1answer
81 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
1answer
43 views

FirstPublishLocationId empty after new File version?

When uploading a file to a record, the FirstPublishLocationId of the file is set to the id of the record. When uploading a new version of that file, and running a query on the file in dev console, ...
0
votes
1answer
19 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
0answers
22 views

Image Formula Fields in HTML Email Template

Trying to put a Formula Field Image on an Email template so to have images unique to the Account. So Email templates replaces & with &amp; thus the parameters in externally shared links from ...
0
votes
1answer
49 views

Conga Composer: Query Salesforce Files from Products to Opportunity

A button on an opportunity should bring all salesforce files from the related products. Trying to figure out the correct query for this What i have found so far is the query for salesforce files: ...
0
votes
0answers
27 views

Permission Error when Auto-Sharing Salesforce File with Apex Trigger

I am trying to create an Apex trigger that automatically shares an attached Salesforce File with a user related to the record upon which the File was uploaded. I believe I have created a working code ...
0
votes
1answer
65 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
77 views

Access PDF File from the Files Tab

When I'm trying to access a pdf file from the files tab, I'm running into the below issue. Message: Cross-origin redirection to https://name-space--c.documentforce.com/sfc/servlet.shepherd/document/...
0
votes
0answers
14 views

Files accessibility under Accounts

We are migrating to Lightning and we just converted Attachments to Files. Now we recently noticed that, Files associated to Opportunities are not available to view under Accounts which was default ...
0
votes
0answers
18 views

Can Static-Resource Files be Listed via Apex? [duplicate]

Is there a way to programmatically list the files in an archive static resource (i.e. .zip)? I know it's been asked whether a static resource can be accessed via Apex, but only to then specify a ...
0
votes
1answer
73 views

File Transfer Button in Live Agent Not Working

We've suddenly started to see an issue in Live Agent where, if an agent requests a File Transfer, the button presented to the user to upload the file does nothing when clicked. It'll get the focus ...
0
votes
2answers
30 views

Share a File Between Communities

I have files that were uploaded to the Asset Library for a Community by adding them to the Rich Content component on a Community page. When I look at the File's sharing settings, I can see that it is ...
0
votes
1answer
31 views

Attach Files to a Big Object record

I would like to associate Files with Big Object records. Documentation inference implies this is not technically possible... if a Big Object could be a "LinkedEntityId" I imagine it would have been ...
0
votes
0answers
25 views

Launch File Upload from Visualforce Page

I'm trying to figure out how I can add a button to my visualforce page that will open the same file upload box that you get when you click contribute from the library tab. I also want to link that ...
0
votes
0answers
144 views

Limit file size to 2 MB for fileUpload Lightning compoennt

I have a requirement where i need to restrict the user to not upload the file size more than 2 MB. We are using lightning:fileUpload , for which i don't see any size parameter. We are uploading file ...
0
votes
1answer
53 views

Files related list on force.com site

I have a related list of files "AttachedContentDocuments" on a VF page (using the tag), which is accessed through a force.com site. This page works as expected for the logged in user. But when ...
0
votes
1answer
22 views

Not getting a value from SOQL query as expected when using a bind variable

public class ELOUpload_Class { public static void ELOUpload_Method1 (List<ContentDocument> lstContentDoc) { //Create a set of all the incoming IDs Set<Id> contDocId = ...
0
votes
0answers
144 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 ...
-1
votes
1answer
36 views

Deploy files from one Org to Another [closed]

I have an object that has a 'Files' list in the 'Related' tab and have attached a Microsoft Word document to that list in my testing org. Is it possible to deploy that file so I don't have to manually ...
0
votes
1answer
115 views

ContentDocumentLink filter not working- Trailhead Conference Management App

Im facing below error: Implementation restriction: ContentDocumentLink requires a filter by a single Id on ContentDocumentId or LinkedEntityId using the equals operator or multiple Id's using the IN ...
0
votes
1answer
238 views

Creating File and Linking to Object

I am working on replacing my attachments with Files. I have created an apex class to create the ContentVersion record but I have been unable to create the ContentDocumentLink object to link the ...