People who code: we want your input. Take the Survey

Questions tagged [attachment]

A standard Salesforce object representing file attachments related to another standard or custom object.

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

How to make certain document upload mandatory on approval task in SLA [closed]

If I create a case from opportunity the SLA gets created and manually we can complete each task. But I want to make document upload mandatory before completing 2nd tasks and 2nd task is approval ...
0
votes
1answer
30 views

Object reference not set to an instance of an object. (Attachment Trigger to Convert to Files)

I've been stuck with this trigger for 2 days now. Essentially the trigger will convert any attachments that are generated in the Agreement Object to Salesforce Files. However upon generating ...
0
votes
0answers
10 views

Overriding Name for QuoteDocument

We create PDFs from quotes, and they get filenames on the form VX.pdf (where X increments). So customer wants to have the filenames be -.pdf. I've tried setting the ContentVersion PathOnClient to ...
0
votes
1answer
39 views

Visualforce - Uploading Files via JSForce/JavaScript

I would like to upload an attachment greater than 135kb (view state limit) through Visualforce and link it to a new object record being creating via a custom controller. My understanding is that I ...
0
votes
2answers
48 views

How to get ContentDocumentId FROM ContentVersion

I have a Pdf attachment which is linked to an object in a Package. The public site is also part of the package so I do not have acces to query all files. I want to be able to let a public site guest ...
0
votes
1answer
24 views

'Enable Notes' strange behaviour

When in Notes Settings 'Enable Notes', there are some strange situation. They stop appear like Note records, and i don't know what object they represent now. And, logically, they don't appear in '...
1
vote
2answers
115 views

Upload and store 50 MB file from LWC

I have a LWC that, is retrieving the body of an attachment using apex. This is retrieved just as blob, because handling it in Apex would hit limits such as String too long os Heap Size exceeded, cause ...
1
vote
1answer
46 views

How to insert attachment using transient variable

I am using the transient keyword to allow users to upload files greater than 135kb (viewstate limit) on a VF page however since the transient keyword doesn't transmit the attachment past the view ...
1
vote
1answer
13 views

Count attachments by SobjectType

In a legacy org that is still using Attachments, I wanted to get a handle on how many Attachments there were per SObjectType. How can I do that with SOQL?
0
votes
0answers
11 views

Folder structure in Notes & Attachments

We will use "Notes and Attachments" in Opportunity record to upload some documents. Those documents are related to Electricity supplies (e.g. Id card, last copy of bill etc). Is there a &...
0
votes
0answers
9 views

Working with Files and attachments and the Salesforce API

I'm working with a specification from a business client where he wants to route attachments to records to parent objects of those records. Fine and dandy'n'all BUT after looking at this I see that ...
0
votes
1answer
29 views

PageReference method not returning null

I have developed a Visualforce page that takes an input file from the user and does not let the user proceed to the next page only if they did not upload an attachment (attachment is null). However I ...
0
votes
0answers
12 views

Unable to restore Attachment from merged records

A user merged two Account records. However the attachment was lost in the process. I am unable to restore the attachment. I trued this in the Workbench Select id, Description, name, OwnerId,...
0
votes
1answer
27 views

Inserting 13k PDF Attachments each 192kb in Attachments object

I want to insert 13k PDF attachments in Salesforce. Each of the PDF is 192 kb. I have created a csv file with the name of the pdf and it's relative path on the local drive. I tested inserting 15 ...
0
votes
1answer
33 views

Is there a way to send attachement image to Salesforces server with Web to leads forms or Web to case & with using AJAX?

So what I am looking for in an indication, because all articles I read about when it comes to sending attachment are dealing with web to lead or web to case forms with default submission! But what ...
0
votes
1answer
141 views

Exporting attachments with Apex Data Loader

I am trying to export attachments from Salesforce using Apex Data Loader. I am using the below query in Apex Data Loader. Select Id, Name, ParentId, ContentType, BodyLength, Description from ...
0
votes
1answer
36 views

How to get Attachement Ids of sobjects for saleforce?

How to get Attachement Ids of sobjects for saleforce? I am already attached one pdf file in one of my Account object then also its not showing here. attachement is added as a notes. I am not getting ...
1
vote
1answer
57 views

List of Salesforce objects those are File types like Document, StaticResource, Contents etc [closed]

I would like to know the list of Salesforce objects whose are based of FILE type. For example Document, Attachments, ContentVersions, Static Resources etc I would like to see what more objects comes ...
1
vote
1answer
68 views

How to get access to attachments in Case Feed Item using Rest API

I'm doing sync with Salesforce. In my case I should sync both Case and CaseFeed items. When my CaseFeed items changed I get the notification from Salesforce and create/update the CaseFeed item in ...
0
votes
1answer
34 views

Create salesforce record from PDF

I am trying to build a utility where a user can upload a pdf or word and after successful upload, it should create a record in salesforce by reading that pdf/word? Is it something doable? If not, can ...
0
votes
0answers
20 views

Notes migration from Salesforce ORG showing html tags

Migration of Notes: we migrated .notes from DEV org to PROD org but when I open the notes in the PROD I'm getting html tag along with the notes something like this: > <p>&nbsp; &nbsp; ...
0
votes
1answer
23 views

To attach a VF page as a File in the record

I have attached a VF page in Notes/Attachments. But now i wanted it to get attached in Files. The below code is working fine if i attach it in Notes/Attachments. Blob pdfBlob; PageReference ...
0
votes
0answers
25 views

How to rename the downloaded attachment

I am facing an issue where I have uploaded an attachment to the content folder and I have created a hyperlink in an email template so that you can download it. The issue is that the name of the ...
0
votes
0answers
16 views

SOQL query to get files names related to account [duplicate]

I want to get the names of all related files in the Account object. Below is my query: SELECT Name, (SELECT Id from Attachments) FROM Account WHERE Id= '0014K00000C6b7pQAB' When I run the query, it ...
0
votes
0answers
37 views

How can I download opportunity attachment through REST API?

I have a list of fileID's. Lets say, 1000. I'd like to loop through and download these files. I'm unable to find the call that does this? I can already authenticate through the API, just need to ...
0
votes
0answers
22 views

Visualforce email template attached blank file

I have the following visualforce email template. <messaging:emailTemplate subject="Unpaid Invoice" recipientType="Contact" relatedToType="Invoice__c"> <messaging:...
0
votes
0answers
25 views

Error: Too many nested getContent calls [duplicate]

I am trying to attach my Vf page which is rendered as pdf to the Files section. But the error " Too many nested getContent calls." is being thrown. The code is as follows: VF Page (Only ...
0
votes
1answer
28 views

Prevent Attachment deletion on Case deletion

I have a requirement where Cases closed over x amount of days should be removed from Salesforce. However, when deleting the Case, the subsequent e-mail messages and attachments linked to both e-mail ...
0
votes
1answer
80 views

Bell notification when file is attached to an account [closed]

I need to create notifications whenever a file is uploaded to an Account. I need this notification to be shown in the bell icon. Thanks Satish
0
votes
1answer
33 views

Rerender files related list on opportunity record page after creating content document link

I use a LWC on an opportunity record page to create a pdf document that is then converted to a base64 string. From this a ContentVersion object is created and a ContentDocumentLink from an imperative ...
0
votes
0answers
57 views

File upload not working in Lightning and Safari browser

I am unable to upload files in Lightning, using Upload Files option in Safari browser. Repro Login as an admin or standard user Go to opportunity record Hover the mouse cursor & Click on the '...
0
votes
2answers
22 views

Store Notes and Attachment as a Attachment

I have Added Notes & Attachment in Related List , So when I upload any svg image , It get stored as a file instead of Attachment . So How can we store that image in Attachment instead of ...
0
votes
0answers
31 views

Upload Attachment at the time of Record Creation

I have a record, Intake. When a VisualForce form is filled by an outside user, an Intake record is created when 'submit' is clicked, using the standard controller action 'save'. The user is then ...
0
votes
1answer
22 views

Store string form data in attachment

I am passing some data as string from my Visualforce page to apex via apex function, I store that data by in attachment body through apex code. I came to know from response to my previous question ...
0
votes
1answer
60 views

Maximum Attachment size

I am passing some data as string from my Visualforce page to apex via apex function, I store that data by in attachment body through apex code. What is the maximum size of data that I can store in ...
0
votes
1answer
222 views

Attachments not related to email-to-case

I use the email-to-case functionnality to create a case from an email. I use an apex handle class to create the case and the email message. It works good but I don't want the attachment in the case ...
1
vote
1answer
119 views

What data type can be used to support file uploads in Salesforce?

I have a custom object and I want to add a new field to support file attachments. For example, while creating new record, I want the user/admin to have an option to attach files to that record during ...
0
votes
1answer
98 views

Lightning Component - Access Quote Attachments

I have this flow in my customer community that loops over the quotes of a given opportunity and shows relevant information about every quote in a separate slide. This may include attachments uploaded ...
0
votes
0answers
15 views

When exporting data with the Data Export Service, will Attachments only be included if the related record is included in the export?

I want to schedule two different weekly exports. One with record data and another with multimedia data (e.g. images, documents, and attachments, Files and CRM Content versions). If I schedule one data ...
1
vote
1answer
40 views

Email Attachment as CSV issues

if I run this code in developer console, I receive the attached csv in an email. However the output of the code is javsscript code instead of the data String ReportId = '00O3300000331x3XXX'; ...
1
vote
2answers
371 views

Can't download Attachment in Site

Until recently we were able to display Attachments to our guest user on our Site using a URL like Site.getbaseUrl() + '/servlet/servlet.FileDownload?file=' + attachment.Id But now, we're not sure what'...
0
votes
1answer
78 views

List of index out of bounds : 1

I'm getting this error from a class referenced by an Email Service. From what I understand, the error is kicked off when a reference is made to a list which exceeds the number of items in the list. ...
0
votes
1answer
151 views

Convert XLSX into CSV in Apex [closed]

We are having some hard time converting a ContentDocument of type XLSX into CSV inside Salesforce APEX code. What we are looking for is a way to convert the stored XLSX file into SF to be converted ...
0
votes
1answer
34 views

URL Data Binding in LWC

I have attachment Id and I need the URL for that particular attachment. But In my LWC component I am constructing the URL programmatically like: I want to avoid hardcoding the first part of the ...
0
votes
1answer
60 views

ContentDocumentId or LinkedEntityId using the equals operator or multiple Id's using the IN operator

I am trying to get list of all the ContentDocumentLink which are not available in a set. But when I try to get NOT IN its giving error Implementation restriction: ContentDocumentLink requires a filter ...
1
vote
1answer
172 views

Hitting heap size limit while trying to convert attachment blob into base64 format

We have a requirement to process attachments to convert blob to base64 format. We are querying the attachment body (i.e. in blob format) and converting that into base64 format in apex class. Below is ...
0
votes
0answers
41 views

How to increase Salesforce file download speed for users in China

We are using Email to Case and have a lot of emails with attachments captured in the system. Customers use email from Salesforce with Attachments/Files to negotiate contracts and exchange invoice / ...
1
vote
1answer
179 views

Downloading all documents through the URL hack gives “This content pack is empty…and cannot be downloaded” error

Based on some answers and google searching, I've understood that all content documents attached to a record can be downloaded if a url is with '/' separated content document IDs formed as below : ...
0
votes
1answer
214 views

Query or extract attachment metadata in bulk

Is it possible to query or extract the metadata/document properties from attachments in bulk? Previously I have been able to get around this by using the object IDs to bulk download the files and then ...
1
vote
1answer
130 views

Is there anything similar to {!URLFOR($Action.Attachment.Download, attachmentId)} which we can use in LWC

I have attachment Id and I need the URL for that particular attachment. Right now In visualforce we have {!URLFOR($Action.Attachment.Download, attachmentId)} to get the URL. But In my LWC component I ...

1
2 3 4 5
14