Questions tagged [files]

The tag has no usage guidance.

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

Not able to see and modify Contentversion or File details like title and Description

I'm facing a very strange issue, i have two orgs, in one of the salesforce org everything is working fine which is a Dev org. another one is scratch org. in the scratch org when I upload the file the ...
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
45 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="...
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 ...
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 ...
0
votes
1answer
30 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
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 ...
1
vote
1answer
36 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). ...
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, ...
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
76 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
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 ...
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
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 ...
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
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 ...
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 ...
0
votes
0answers
22 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 = "...
6
votes
0answers
246 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
159 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
35 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
17 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
14 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
17 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
82 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
29 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
62 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
106 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
15 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
22 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
23 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....
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 ...
0
votes
1answer
23 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
37 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
13 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
21 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
51 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
71 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
122 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....