Questions tagged [files]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
10 views

Is it possible to move Files under Activities to Opportunities/Accounts

As Salesforce Files of Archived Activities are not displaying in Lightning, our Sales manager is asked to try an option. That is to move the Files attached to Task/Events to its associated Opportunity ...
0
votes
1answer
11 views

Is the ContentBodyId the ContentPack Id on ContentVersion Object

Is the ContentBodyId the ContentPack id/reference on the ContentVersion Object? https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_contentversion.htm The official docs,...
1
vote
1answer
19 views

Why am I getting a path instead of a file when I query for VersionData on ContentVersion?

When I query for VersionData from a ContentVersion record, I get "/services/data/v44.0/sobjects/ContentVersion/0681F000000QY0eQAG/VersionData" in the response. I'm expecting a base64 encoded file. ...
1
vote
1answer
40 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:
0
votes
1answer
25 views

lightning:input type=“file” not working

I'm working with a lightning custom component that needs to load files and handle them in back controller. I have this definition of lightning:input: <lightning:input type="file" label="{!$Label....
1
vote
1answer
26 views

Salesforce Files - Is it mandatory to convert older attachments to Files?

While Salesforce is pushing adoption of Salesforce Files, here are few questions from an integration product point of view: Is it mandatory to convert older attachments to files? What is new object ...
-2
votes
1answer
23 views
1
vote
1answer
39 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
1answer
37 views

How to get file name in http response?

I am using apex code to get file from url and able to insert it as attachment. I would like to know file name as well while insert ? When I open link in chrome it save the file with file name. ...
0
votes
0answers
30 views

Error while inserting a new revision of a file programatically

I am trying to upload a new revision of a file in ContentVersion object programmatically by Apex. I am getting the below error while inserting a new record of ContentVersion. 15:21:52:424 ...
1
vote
1answer
35 views

PDF file is getting corrupted when sending by HTTP callout to external system

on file upload below function is called in LWC. LWC Function uploadHelper() { this.file = this.filesUploaded[0]; this.fileReader = new FileReader(); this.fileReader.onloadend = (() =&...
2
votes
1answer
12 views

Where are files shared with a public link stored?

In the org I am working on, we have a bunch of files attached to a custom object that represents a PDF report of the contents of that file. When the files are attached, we have some automation that ...
1
vote
0answers
34 views

How to use a Data Extract to send tracking activity to an SFTP

I am trying to set up my first data extract activity, and I'm having a lot of trouble with the basic setup because I don't truly understand what the activities do. I'm trying to do a tracking export ...
1
vote
1answer
46 views

Deleting 'Files' in Lightning Experience

As per Salesforce documentation 'Files' (ContentDocument) can be deleted only by the user who created them. In order to provide access to delete a file created by other users, Salesforce recommends ...
2
votes
0answers
163 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: &...
1
vote
1answer
436 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
28 views

How to query attached fiels from library in Lightning style?

I have the following query: List<Document> attachments = [Select Id, Name, Type, Folder.Name, FolderId From Document WHERE Folder.Name = 'Team Attachments']; In Lightning I have the same ...
0
votes
1answer
452 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 ...
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
14 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
44 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
36 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
26 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 (....
4
votes
0answers
333 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 ...
1
vote
2answers
495 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 ...
5
votes
1answer
175 views

How can I make file public in Salesforce to fix a sharing error?

When I try to share a file in Salesforce, I get the error that The maximum number of times this file can be shared has been exceeded Which means it is shared > 100 times. The documentation ...
0
votes
1answer
35 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"...
-1
votes
1answer
379 views

Error while uploading File to S3 from Apex

I am using the below code to upload file to Amazon S3 from Apex class. public void uploadToAmazonS3 () { String filename = this.record.File_Name__c; String attachmentBody = EncodingUtil....
5
votes
1answer
565 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 ...
0
votes
0answers
46 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
33 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
21 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
22 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 ....
2
votes
2answers
730 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
2answers
151 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
548 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
0answers
34 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" ...
1
vote
1answer
380 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
65 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
2answers
998 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. ...
3
votes
2answers
707 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
42 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
28 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
74 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 ...
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 = ...
4
votes
3answers
5k 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/...
1
vote
0answers
97 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
158 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
32 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 ...
0
votes
0answers
60 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 ...