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
12 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
13 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
22 views

Error: Too many nested getContent calls

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
22 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
49 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
0answers
11 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
13 views

How to send Selected email template from down in email using vf page [closed]

My requirement is that i want to dispaly all aatachment in a dropdown, when i select a attachment from dropdown down then selected attachment should send in email. thanks!!
0
votes
0answers
29 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
17 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
26 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
14 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
28 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
36 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 ...
0
votes
1answer
41 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
71 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
9 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
30 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
0answers
102 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
33 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
49 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
18 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
28 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
64 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
30 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
77 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
97 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
70 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 ...
0
votes
1answer
23 views

Unable to upload new attachments or view already uploaded attachment related to a record once the Owner is changed

Issue: I have a Custom Object Application__c and to the records of this object I am uploading attachments after logging in to our application. In this scenario it works fine. I am able to upload ...
0
votes
1answer
26 views

Preview of attachments already added to a case?

Can we have a preview of the attachments already added to a case? In other words, if we do 1 attachment and then want to add another, can we see in a small section which one has already been uploaded? ...
2
votes
1answer
62 views

Can we directly bind apex class property in LWC - for 25MB file upload with apex (heap size issue)?

I have lwc component like: import { LightningElement } from 'lwc'; import {saveAttachment} from '@salesforce/apex/DocumentController.saveAttachment' export default class FileUpload extends ...
0
votes
0answers
31 views

How can I add attachment to related list of object when the user is not logged in?

I have a Visualforce page with lwc components in Site, which does not require user to log in. Here the requirement is to upload a file as attachment to a Custom object. In other places we had login ...
2
votes
1answer
115 views

In Salesforce Classic, Contentversion Triggers not firing on files uploaded through chatter comments?

We are currently attempting to restrict which files can be globally uploaded in our org using information present on the ContentVersion / Attachment objects. However, in the case of files uploaded ...
2
votes
0answers
20 views

Sending a File by email in Classic creates an attachment: how to prevent this?

Salesforce is gently pushing us to use Files and not Attachments. However, in Classic I seem unable to prevent the creation of new Attachments. In Setup, there is the option "Files uploaded to ...
0
votes
0answers
89 views

How to create a PDF attachment based on the lightning-input-rich-text value?

I have a requirement to create a pdf attachment from the value that the user saves in lightning-input-rich-text. Basically I need the to convert whatever the user has composed in Rich text editor as a ...
0
votes
0answers
39 views

Migrate Attachments as a Content Document in other org

I am migrating the data from one org to another org. Let's assume Source Org as S (from where I need to migrate the data) and Destination Org as D (where I need to insert the Data). Now in org S, ...
1
vote
1answer
25 views

Issue with renaming Attachments with Accents in File Name- Bulk upload

I am working on bulk loading of Attachments and as per SF documentation, after Data export, I renamed Attachment names using 'bat' file. Everything went fine except for the Attachments that has Accent ...
0
votes
1answer
219 views

Unable to upload large files (not above 4MB) as attachment with apex class method from LWC. How to overcome this issue?

LWC method to convert selected file content to base64 String and call the apex method for uploading as related Notes and Attachment on a particular record myComponent.js const toBase64 = file => ...
1
vote
0answers
40 views

Upload Visualforce PDF to Files Related List Using Apex (getContentAsPdf() and Future Method Issue)

I'm currently trying to upload my Visualforce-rendered PDF to the Files related list of my record. I understand PageReference and getContentAsPDF() both behave as Callouts and thus needs to be ...
0
votes
1answer
24 views

Can't get attachment data from outbound email via Apex

Has anybody got experience or ideas how I can resolve the following issue please? We're trying to query attachments sent via outbound email from the email related list on case, so that we can copy the ...
0
votes
1answer
67 views

How to get base64 from Body__s field on Salesforce Classic Knowledge

I am trying to get the base64 encoded version of a Salesforce Classive File Upload field type via the Salesforce REST API from one org to another. However when I query the rest API for the knowledge ...
0
votes
1answer
34 views

Where can I view attachments that I've uploaded to salesforce using a REST api?

response = requests.post('https://%s.salesforce.com/services/data/v29.0/sobjects/Attachment/' % instance, headers = { 'Content-Type': 'application/json', 'Authorization': 'Bearer %s' % sessionId },...
0
votes
0answers
27 views

View attachment button tries downloading file instead previewing it onsite

When "VIEW" button is pressed on attachment record files of type ( .doc, .docx , .msg ) etc gets downloaded instead opening automatically without downloading. This was how it was working ...
0
votes
1answer
61 views

Parent ID not updating on Attachment [closed]

I have a requirment where when 2 records are merged, the attachment related to merged record should be inserted to parent/master record. Below is my code related to this List<Attachment> attObj =...
0
votes
0answers
31 views

Read visualforce as pdf in the attachment and display it in record page (attachment is blank)

I'm creating a visuaforce page as pdf to display some account and opportunity fields in pdf. But when I try to read the pdf and add it into attachement I find that is blank. Please could you help me ...
0
votes
1answer
77 views

Blank PDF attachment when try from site

I have a site, when a guest user insert some data into a inputText it triggers a record creation (HojaEntrega__c object and child records from HojaEntregaItem__c object), then an attachment creation ...
0
votes
1answer
39 views

Identifying attachment type

I am attempting to identify the format of attachments which come in emails entering my Email Service in order to determine if an attachment is a .csv file. I was guided to use this as my solution : ...
0
votes
0answers
163 views

Fetch Document Blob value from files

I am trying to create an Apex REST API to get documents from "Files". I want to get the document as a binary/blob value. I used the Rest Explorer in Workbench and could figure out the query as: /...
0
votes
1answer
149 views

Prevent file from being duplicated as email attachment - Apex

I've button when i click on it it generates new file , i want to attach that file to email The problem i'm facing is that i found duplicate attachments when i click on button twice , 3 attached file ...
1
vote
2answers
36 views

Same Image Preview getting displayed for all attachments

I am trying to display respective attachment preview on a VF Page, but if you can see below picture of my VF page, same image is getting displayed for all attachments, not sure where i'm going wrong ...
1
vote
2answers
315 views

How do I get correct base64 data present in VersionData field in ContentVersion through jsforce?

I am using jsforce to query VersionData field in ContentVersion object. However, it returns me the URL to the base64 data instead of the actual data. If I make a GET request to the URL (using the ...

1
2 3 4 5
14