Questions tagged [files]

This tag can be used for file related questions of any kind.

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

What is the efficient way to programmatically fetch binary blob data for automation?

Bulk API 2.0 which is the most efficient way to fetch data in range between 2000 and 15000000, doesn't support binary (blob) data in ContentVersion VersionData and it also doesn't support Attachment ...
Patlatus's user avatar
  • 16.1k
0 votes
1 answer
54 views

i want to export 3.4 TB size of files and attachements from salesforce

i want to export 3.4 TB size of files and attachements from salesforce, *I tried to extract the files and attachements using data export module in salesforce but now its running for 3 weeks and no ...
bejaoui salsabil's user avatar
0 votes
1 answer
22 views

How can I determine parent record of file uploaded through related list of notes and attachment?

I have uploaded a file to Notes and Attachment section and I expect ParentId field on ContentDocument record to be populated with the actual Opportunity record Id where I have uploaded this record but ...
Patlatus's user avatar
  • 16.1k
-1 votes
0 answers
44 views

Can we download the file/content from salesforce URL

I have one url: href="url.my.salesforce.com/apex/echosign_dev1__SignedAgreementDocLink?agreementId=aLPDEXXXXXXXXXX" using which I can see the file in my browser. Is there any machanism to ...
RjT_BnsL's user avatar
0 votes
0 answers
39 views

get all stand alone FILES

I have a process of case auto deletion, and it seems that when a case is deleted and a file was attached to it, the file is not deleted in the same time. Q1: Is it possible that files remains in SF ...
Raphael D's user avatar
  • 534
0 votes
0 answers
25 views

User assigned with Read-only permission set group can upload files

In my org there is a permission set group called ReadOnlyFundingOpportunity with the following permission sets: ReadOnlyFundingOpp on the FundingOpportunity object. I assumed a user assigned with ...
ash's user avatar
  • 1
0 votes
0 answers
40 views

Editable PDF Files Rendering Blank on Preview

I hope this message finds you well. I have a question regarding an issue with the compatibility of PDF documents in the Salesforce document preview. In our iOS app, we use editable PDFs with elements ...
Stanislav's user avatar
0 votes
1 answer
61 views

Downloading a file via REST API

I need to download files with the API, using now data/v59.0/sobjects/ContentVersion/{contentVersion}/VersionData but it's returning the entire file as application/octetstream but without a Content-...
Marcos Forlenza's user avatar
1 vote
1 answer
142 views

When I upload image assets to my Experience Cloud site, Salesforce compresses them and they have poor quality

I am using an out-of-the-box theme & standard components like the hero component. The images I upload to the site get compressed to a very small file size (less than 2 KB) when served up to the ...
nbrown's user avatar
  • 3,964
0 votes
0 answers
42 views

Problem with sending files through HttpRequest

I'm getting problems when try to send files larger than 3MB (aproximated) to third-party through HttpRequest in a Integration Apex Class. This third-party tell us than they received the request but ...
Alex López's user avatar
0 votes
1 answer
62 views

Guest User cannot edit ContentDocument

We have a system in place to allow guest users (under some circumstances) to modify files in Salesforce (those pesky ContentDocument and ContentVersion records). This system works in the development ...
AvailableName's user avatar
0 votes
0 answers
48 views

Can CumulusCI Migrate Files?

I'm using CumulusCI to automate org setup, deployment and data migration. This is all working great but I have run into a problem using the tool to migrate files. Is this a known limitation of ...
nathanvoller's user avatar
0 votes
1 answer
78 views

How to Access File's VersionData via API Callout in Python

tl;dr - How can one access the returned data from a callout to a ContentVersion.VersionData field value (sObject blob) in Python? Background As a follow up to this question's reply, I currently have a ...
Jwok's user avatar
  • 767
0 votes
0 answers
25 views

Creating APEX Trigger in Sandbox, works in Sandbox but wont deploy in Production [duplicate]

I am trying to get an APEX Trigger from the sandbox into production for my org. The trigger is to make all of the files that are uploaded into a record to show for the Community Partner users on the ...
Dustin Erickson's user avatar
0 votes
0 answers
138 views

PDF File Preview Not Working On Salesforce Mobile App - "Display alternative file previews" Doesn't Work

I have a problem with PDF File previews which are attached to Account records in Salesforce. When users enter on the Salesforce mobile app using an Android tablet and try to preview a PDF file, not ...
Emmanuel_M's user avatar
0 votes
2 answers
1k views

LWC display image attached to custom record

I want to show a photo, like an Id photo that is attached to a custom record. I've tried notes and attachments as well as files to upload the photo file. I need to show the photo in an lwc. I've tried ...
mackmama's user avatar
  • 689
1 vote
0 answers
71 views

What are the correct security settings to use when performing a SOQL query on ContentDocumentLink or ContentVersion?

We are building a small LWC for browsing images that users have uploaded to our organization through the built-in Files support. Our users are able to properly see the Files when accessed through the ...
kennyc's user avatar
  • 307
0 votes
0 answers
21 views

Access Permissions of Files -Salesforce and Share Point integration

We're exploring option to build integration between Salesforce and Share Point. We're looking into various options like File Connect or appExchange tools but we're getting stuck at one important point-...
sfdc_Qrius's user avatar
0 votes
0 answers
26 views

Allow limited type of objects while raising attachment request from agent?

I have marked Agent File Transfer Enabled true for each Chat Agent Configuration: Now agent can initiate file transfer. When agent initiates file transfer it sees pop up like below: When agent click ...
वरुण's user avatar
1 vote
0 answers
321 views

PDF File Preview Not Showing Correctly - Setting "Display alternative file previews" Doesn't Work

I have a problem with PDF File previews which are attached to Account records in Salesforce. When users enter inside the 'Related' tab and try to preview a PDF file, not all the contents inside the ...
Emmanuel_M's user avatar
0 votes
0 answers
77 views

Cannot insert blob file as content version

I'm trying to insert blob file as Content version into Salesforce. Im getting the response in my webhook, for which I have to make a callout to another endpoint to get the blob data. Once I got it, I'...
Anirban's user avatar
0 votes
0 answers
14 views

Can you create a field that points to a specific File?

Is there a way to create a Lookup Relationship field such that the field points to a Related File? For example, in FSL we have the Asset object. Our users upload photos to an Asset object as Files. ...
kennyc's user avatar
  • 307
0 votes
0 answers
80 views

How to download a file in a lightning datatable using the download icon

I'm hoping someone can provide me guidance on this since I haven't been able to find an answer. I have created a lightning datatable which displays delete and download icons on each row. I am able to ...
Joe's user avatar
  • 13
1 vote
1 answer
468 views

Update ContentVersion custom field by user with Salesforce Platform license

I have ContentVersion record with custom field Status__c. I have apex code updating Status__c field. It is working correctly if I use user with Salesforce license. The updating user is not owner of ...
rstrader's user avatar
0 votes
0 answers
55 views

Is there a good mechanism for making small images such as logos publicly available?

I read that "public" static resources are only accessible if already cached which probably explains sporadic results I've had: Public specifies that the static resource data cached on the ...
Keith C's user avatar
  • 135k
1 vote
1 answer
422 views

SOQL query for Files & Notes Related List

I'm a new developer who needs help with a SOQL query. As you know, the standard files and notes related lists on an Account do not include files/notes added on child objects (e.g., Opportunity, ...
Joe's user avatar
  • 13
0 votes
1 answer
196 views

How to upload a file against a custom/standard object record?

We have been using Attachment and we have just started to explore Files so bear with me if this question is silly. I am aware that I can upload files using the "Files" tab but I would like ...
daww's user avatar
  • 79
0 votes
1 answer
2k views

Difference between lightning-file-upload and lightning-input type="file"

I am using PapaParse to parse my CSV file and the function is expecting the parameter which is the File object. When I use lightning-input type=file the function is working but the file collected ...
Rahul Allada's user avatar
0 votes
0 answers
85 views

Send an already inside SF created PDF via an extra button

We have integrated a subscription tool. This tool generates on a custom object (CB Quote) a quote pdf file. There is also a standard "Send Email" action button which attach the pdf. But the ...
Alex M.'s user avatar
  • 45
0 votes
0 answers
90 views

How To Share Files In Salesforce With More than 2000 Users

We have a Managed Package, where three documents are fetched from a third party via API and saved in Salesforce. Once the users are provided with the access of this Managed Package, we need to share ...
Jitesh Goel's user avatar
0 votes
0 answers
180 views

Overriding Upload Files button in Salesforce Related List

Requirement is, asking certain question from user before they upload any files in to the system like it has any sensitive information etc. For that I wrote a custom component with <lightning-input&...
LWC_Beginner's user avatar
1 vote
2 answers
874 views

Supporting guest user file upload on an LWR Site (up to 20mb)

I'm trying to build a simple public-facing web form on an LWR Site. One key requirement is for users to be able to upload a file, but I'm facing some heavy obstacles: lightning-file-upload is not ...
Matthew Souther's user avatar
0 votes
0 answers
101 views

get contentDocumentId from ContentDocumentLink without apex

I am trying to get ContentDocumentId from ContentDocumentLink using wire method. But i am unable to get any results . The purpose of using wire is any file which is beyond 6mb is throwing error ...
sfdc_to_learn's user avatar
0 votes
0 answers
47 views

Make all object attachments visible on community portal automatically

The problem - all Salesforce attachments are not visible to experience cloud/community portals by default. I would like to automatically give specific custom object attachment child's an isVisible = ...
Shimon Zouzout's user avatar
3 votes
1 answer
256 views

Lost ability to upload Files

I have noticed that my ability to upload files has gone. I am a System Admin. This is not affecting all users, just me and one other person who is not a system admin. I am not sure what settings could ...
asidrey's user avatar
  • 79
0 votes
1 answer
357 views

List of file types that generate a thumbnail preview?

Is there a list of file types/extensions that Salesforce create a preview of? ie. when using /sfc/servlet.shepherd/version/renditionDownload?rendition=THUMB720BY480&versionId=${versionId} For ...
Nick C's user avatar
  • 6,456
0 votes
0 answers
210 views

apex email to case image not showing in Description field(RichText)

I have the following code to create Email-to-Case using Apex. The issue I am having is when an image is sent in the email body I am getting a broken image. can someone point me what is the mistake ...
Tamil's user avatar
  • 714
-1 votes
2 answers
2k views

hide the delete button in a related list for a custom object

How can I hide the delete button for a record in a related list for that record's object?
kushagra saini's user avatar
0 votes
1 answer
429 views

Need to Show Names of Related Files as Checkbox Group in Flow

I am creating a flow in which end users can select files to copy from one record to the other. I have been able to do this using ContentDocumentLink as the object for the record choice set, but I need ...
SCorkum's user avatar
0 votes
2 answers
58 views

Query for Related Attachments works in query editor but not Apex

I am trying to make a simple APEX Class that returns a records related attachments. When I do the following SOQL query in the Query Editor I get the 3 expected results: SELECT Id FROM ...
Austin Kelly's user avatar
0 votes
1 answer
207 views

How to transfer file from Salesforce to Marketing Cloud?

Does anyone know how to do that? When in SF creates opportunity with some attached files (PDFs) - need to send an email from Marketing Cloud with some opp info and attached to this email files that ...
Bob Greed's user avatar
0 votes
1 answer
1k views

SOQL Query for to fetch Content Version documents of Parent to do data update activity?

We have a requirement where when we close the work order, we have to set custom field value "Allow Archieving" to true on it's content versions documents. For this, I have already written a ...
SFDCDJ's user avatar
  • 1,814
2 votes
0 answers
557 views

When to use which: Static Resources VS Asset Files

Static Resources and Asset Files seem to serve same purposes to me because they both can be used for coding, branding, and design. What are the differences between these two? What are the best ...
Xin's user avatar
  • 137
-1 votes
1 answer
172 views

How can I create custom addError message in ContentVersion trigger?

I have a trigger that will prevent the user to upload file but the error message in ContentVersion is being overridden by Lightning. How can I create a custom error message? trigger CDTrigger on ...
ratRiot01's user avatar
0 votes
0 answers
68 views

How does After Trigger works when using addError in ContentVersion object? Is the file successfully uploaded or not?

I have a custom object with related files in a page layout. Now if user click the 'Upload files', I want to prevent user to upload a file. Seems like I cannot use 'before trigger' because I cannot ...
ratRiot01's user avatar
1 vote
0 answers
213 views

How to enable object SharingRecordCollection in sandbox?

Context To retrieve all applicable files in the org and perform a data migration on ContentVersion records, we have created a permission set with Query All Files permission (as recommended here) and ...
Shamina's user avatar
  • 4,185
0 votes
0 answers
60 views

Html Parsing in Apex Class [duplicate]

I have a html template file available as attachment in one of my Salesforce object. It contains a proper html form with input tags and sub templates. Whenever I get a request from third party, which ...
PK SF's user avatar
  • 41
0 votes
1 answer
616 views

Is there way to programmatically obtain URL of File related to sObject?

This is for my pet project. I have a Candidate object and image from related files should be displayed on it's record page. I know that it is possible to display image using formula field, but for ...
dobra_wodka's user avatar
1 vote
2 answers
2k views

Adding custom field to Files upload in salesforce

We have a custom object where we are allowing users to load files. Now, we need to provide user a check box before uploading this files into Salesforce so that we can revisit those files for data ...
LWC_Beginner's user avatar
0 votes
0 answers
30 views

Can an uploaded File Body/Data be copied to a Document Object?

I am currently using Attachments (not Files) and we move the FeedItem data to our custom Document object. Is there a way to capture the File upload and do the following, that is done with Attachments?...
Tauk's user avatar
  • 1

1
2 3 4 5
10