Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs

Questions tagged [files]

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

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

Allowing users to organize ContentDocument into folders on a record

I have a Task in Salesforce which people can upload files too. I want to try to allow them to upload them into specific folders. I read about Libraries, but this seems meant for allowing for me as an ...
user2658392's user avatar
0 votes
0 answers
24 views

Azure Blob Storage Put Blob from URL from Salesforce Apex : Error: OutOfRangeInput

I'm attempting to put blobs into Azure Blob Storage from Salesforce that are over 12MB. I am using Put Blob from URL: https://learn.microsoft.com/en-us/rest/api/storageservices/put-blob-from-url and i ...
Vishwamber Shetty's user avatar
0 votes
1 answer
32 views

Read PDF from stripe portal

I am having this URL https://pay.stripe.com/invoice/acct_1OtiZXH7y1vTRsp1/test_YWNjdF8xT3RpWlhIN3kxdlRSc3AxLF9RMkxNanIzNXN3TTlZOHNaaUZLZm9kQnBjemh3STBXLDEwNTI2NDAzOA0200luNre0xP/pdf?s=ap and when we ...
SFDC-Beginner's user avatar
0 votes
1 answer
20 views

How can we leverage API to bulk upload File Links with relation to parent records

We are trying to leverage Bulk API to upload File Links We create an Bulk API ingest job using the following URL: https://{{Domain}}/services/data/v59.0/jobs/ingest and Body: { "object" : ...
Patlatus's user avatar
  • 17k
0 votes
2 answers
65 views

How to count the number of files related to a record?

I had assumed that DLRS would handle this case. There is an open issue on this area but with rays of hope - thread here https://github.com/SFDO-Community/declarative-lookup-rollup-summaries/issues/433....
Keith C's user avatar
  • 136k
1 vote
1 answer
71 views

Within Governor Limits: Split a Large Text File Apart In Apex

I am writing a class that splits text file apart. Chunking them into 5000 line groupings so I can upload the files contents to another limited system. The text file contains a Json object on each line....
Ryan Sherry's user avatar
0 votes
1 answer
51 views

Accessing ContentVersion file data from Lightning web component

We are trying to build a zip download feature for documents. The zip can contain files stored in ContentVersions and external files. It works fine for external files. But due to CORS, we cannot access ...
Andreas Tschritter's user avatar
0 votes
0 answers
37 views

Batch Class - Performance Optimization

I have a batch class which converts attachments to Files for old records in the system. We are running with batch size of 20 to 25 for the attachments to convert to Files but the conversion process is ...
RedDevil's user avatar
  • 7,821
0 votes
0 answers
22 views

File Privacy on Records field is not visible in Edit File details opened from row actions in Related Files

I've included File Privacy on Records field to ContentVersion object layout and it is shown everywhere except when I click "View All" on Files related list on record page and then "Edit ...
dobra_wodka's user avatar
0 votes
0 answers
33 views

Calling a flow that creates a list of uploaded files from an apex class is always one file behind

I am using a Flow to update a File_links__c on a record with the list of all the files for that record. This flow was originally a record-triggered flow. Editing any field in the record triggers a ...
ash's user avatar
  • 1
0 votes
1 answer
42 views

Can visibility of Files related to sObject be restricted for certain users that have edit access to that object

We have Internal Financial Request object and Files related list. Let's assume there is two users user1 and user2 with edit access to a particular record of IFR. If user1 uploads file related to this ...
dobra_wodka's user avatar
0 votes
0 answers
38 views

Send multiple Content Document in a rest api in salesforce [duplicate]

I am sending related attachments from an email message to an external api but the files arrive damaged. I have tried with other files from other sources but it doesn't work in salesforce. Here is the ...
Felipe Peña's user avatar
0 votes
1 answer
362 views

Can I retrieve project files from production using the sf CLI?

When I run sf project retrieve start on a production Org, it says: Error (1): This command can only be used on orgs that have source tracking enabled, such as sandboxes and scratch orgs Is there a ...
Z0q's user avatar
  • 59
1 vote
1 answer
30 views

Salesforce Public Repository

I want to create an Email Signature Banner in Salesforce. Once copied, we will paste it in Gmail signature. Is there a way to upload an asset image that will be still visible outside the Org? I've ...
Lyeroken's user avatar
1 vote
1 answer
172 views

Does using the atob and btoa Javascript functions impact Salesforce Security Review?

We have a Second Generation Managed Package where we need to get the data from a JSON file. So using apex we are able access data of the JSON files having size less than 6 MB due to the heap size ...
S1th's user avatar
  • 143
0 votes
1 answer
32 views

Does standard search index against content file body

I cannot find any documentation regarding if Standard Salesforce search performs the search against File Content, for example, if I have a PDF document with content 'ask my anything' or 'hallucinating'...
Patlatus's user avatar
  • 17k
0 votes
1 answer
117 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
  • 17k
0 votes
1 answer
75 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
  • 17k
0 votes
0 answers
44 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
  • 616
0 votes
0 answers
41 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
55 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
515 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
388 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
  • 4,013
0 votes
0 answers
92 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
162 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
58 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
195 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
  • 769
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
299 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
3k 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
  • 707
1 vote
0 answers
114 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
  • 349
0 votes
0 answers
58 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
27 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
569 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
130 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
110 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
837 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
87 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
  • 136k
1 vote
1 answer
894 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
394 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
3k 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
166 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
2 votes
2 answers
1k 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
3 votes
1 answer
367 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
557 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,730
0 votes
0 answers
263 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
  • 724
0 votes
2 answers
4k 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
618 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
88 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
279 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

1
2 3 4 5
10