Questions tagged [files]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
21 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
45 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 ...
0
votes
0answers
8 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 ...
1
vote
0answers
27 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
16 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
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
28 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
46 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 ...
1
vote
0answers
40 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
22 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
23 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
33 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
8 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 ...
0
votes
2answers
48 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 ...
0
votes
0answers
11 views

Multipart multi ContentVersion Upload with Python Client

i'm trying to upload multiple files (2 in this example) with multipart using a python client. this is my request import requests import base64 import json access_token = "xxxxxx" instance_url = "...
4
votes
0answers
130 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 ...
0
votes
0answers
21 views

How do I programmatically open a full-screen preview of a ContentVersion

When I go to a record with attached files, I can click on anything in the "Files" related list. This pulls up a full screen preview of the file, darkening the remainder of the screen, with buttons to ...
2
votes
1answer
49 views

Export and Import of Salesforce Files and Notes from one production org to another production org

I have completed a data export of an org we acquired through the following steps: In Setup, navigate to Data Management | Data Export Click on either Export Now or Schedule Export button, whichever ...
0
votes
1answer
29 views

How to add a filter in query to only fetch specific files

I am running a SOQL query on contentversion to fetch files that are attached to opportunity. However, I am noticing that it is even pulling the notes attached to the opportunity as well. Is there a ...
0
votes
1answer
14 views

How to Dynamically Embed Images from Files into Email Templates

I have a custom object with Files. The Files hold images. I am creating an email template and want the Files to embed in the email template. How do I even begin to go about that? I can't find anything ...
0
votes
1answer
13 views

Can the public link in Files be limited to logged in users?

We have a private (authenticated) community that is intended to include content (Files and Knowledge articles) that is only available to logged in users. We are trying to share files to our external ...
0
votes
0answers
16 views

Files Related List on Case Page Layout not displaying

The File Related List in the Case Page Layout is not displaying if the 'Enable Chatter' options is disabled for a specific profile. But since Summer '16 Files are decoupled from Chatter, but I can't ...
0
votes
1answer
52 views

How to convert Salesforce contentversion to actual file

I have created a rest API that returns the list of opportunities as well as files attached to the opportunities. I am able to call the API and retrieve the data via POSTMAN. This is the code: @...
0
votes
1answer
27 views

Salesforce Files - Is it possible to link a file with Case + specific user and skip it from Content Document link API call?

We've a use case where our customer wants us to link a File record to Case but not fetch it via Content Document link API call i.e. mark it private for selective internal Salesforce users. In nutshell,...
0
votes
1answer
60 views

Fetch Files Related to opportunity in salesforce

I want to run a SOQL query that fetches files associated with opportunities(in a particular stage). If I am not wrong content version is the actual object I need to be querying on to fetch content? ...
0
votes
2answers
61 views

Error while inserting contentdocumentlink with Collaborator access through Apex

I have a lightning component which executes an apex class on load. In apex class, I'm getting some list of files and providing 'Collaborator' access to the logged-in user if he is eligible. When I'm ...
0
votes
0answers
14 views

POST Mutipart/form-data with HttpRequest supporting tiff and jpeg files

I have a requirement where I am supposed to send files from Salesforce via an API Call. I have been able to successfully send PDF Files, but the same is not happening for other file formats, like Tiff,...
0
votes
0answers
11 views

Restricting chatter files based on file type using trigger

The solution provided here is not working for multiple attachments on one single chatter post. The logic applies when either only one file of exe type is selected, or in case where multiple files are ...
0
votes
0answers
20 views

File preview issue of ContentVersion data that is copied from Attachment Body blob

I've created my own custom Solution object for SF Lightning use. I'm trying to migrate existing SF Classic Solution's Attachment Body blob data to ContentVersion versionData blob data. Below is the ...
0
votes
0answers
12 views

Auto-append file name on esignature

When we attach multiple files in adobe sign in Salesforce by pressing the e-signature button on any agreement record, the filename gets auto-appended in sequence with "_" pattern Example - "_0" then "...
0
votes
0answers
20 views

dw.io.XMLStreamWriter vs dw.io.FileWriter in SFCC

Is it a good idea to use the dw.io.FileWriter instead of the dw.io.XMLStreamWriter to write to an xml file? What are the reasons which would make me to prefer the dw.io.XMLStreamWriter over the dw.io....
4
votes
2answers
266 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 ...
0
votes
1answer
22 views

Limit only one pdf in attachment/salesforce files per object record

I have a requirement where i need to make sure only one pdf can be uploaded via attachment or salesforce files in an object record. In case user tries to upload another pdf in the same record it ...
2
votes
1answer
27 views

How to track deletion of Files (Content Documents) in Case Feed?

Customer is using Email2Case, configured to store email attachments as Files (Content Document/Version/Link). They specifically will allow agents to delete these files, as they get many unneeded ...
0
votes
0answers
12 views

Add File (ContentVersion) custom fields (Text/Lookup) to Global Search results

I'm looking for ways to show custom field values as part of the file search results of the global search. Salesforce does allow to add fields to global file search (in classic) but whatever type of ...
0
votes
1answer
18 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 ...
1
vote
1answer
43 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. ...
0
votes
1answer
48 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,...
0
votes
1answer
91 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....
2
votes
1answer
47 views

Salesforce Files - Integration related queries

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 ...
1
vote
2answers
458 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
118 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
39 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
41 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
42 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
97 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
152 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 ...
0
votes
1answer
31 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
0answers
10 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
15 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 ...