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

learn more… | top users | synonyms

1
vote
1answer
25 views

View state size limit & de-reference null for transient

I have below code to allow multiple file attachments to be inserted against a parent record id. But this results in either View state size limit exceeded (not all the time) or dereferencing null ...
0
votes
0answers
12 views

Attachment upload using community login

I am trying to allow a community login user to upload an attachment to a case from a visualforce page. My uploader works just fine if I am logged on as regular user but once I login as a customer ...
0
votes
0answers
10 views

Create Multiple large attachment records for a custom object

I have a piece of code where I need to implement multiple large attachment records upload capability for a custom object(Call2_vod__c) record as it's parentid. Can someone help me here please? Page: ...
0
votes
0answers
10 views

Attachment migration : existing Salesforce to new Salesforce

I have a unique requirement wherein I will have to download and upload 100 GB of attachment and upload it in a completely unrelated new instance of Salesforce. The client creates almost 500 MB of data ...
0
votes
1answer
49 views

CombinedAttachments Table subquery is not returning any result in Test class

In below test class method, the subquery is not returning any result even after inserting the attachment. Test CLass : @isTest private class AttachmentRelatedListController_Test { ...
1
vote
2answers
25 views

Relationship problem and 'Illegal Filter on Attachment'

I have a query like this: SELECT ParentId FROM Attachment WHERE Parent.Type = 'Contact' When testing with an account, I get an error saying: [MalformedQueryFault [ApiQueryFault [ApiFault ...
0
votes
0answers
29 views

Uploading base64 file to Attachment doesn't work

I have image data in base64 format, so when I upload the base64 file, it says it uploads successfully, but when I go to the Salesforce admin, my Attachment is broken. I click on "View File" and it ...
2
votes
0answers
23 views

Customizing the article attachment in the send an email functionality

As per standard salesforce functionality, while using Send an Email from a case, you have the option to attach the article as an attachment to the email that is sent. Salesforce has a certain ...
1
vote
1answer
36 views

Maximum size of attachments in an outgoing email?

I am using Apex to send emails with attachments to users. For incoming emails, I know the maximum size of the email, including the attachment, is 10 MB. Email which are above 10 MB are not processed ...
0
votes
0answers
6 views

Accessing Chatter Attachments For A List Of Ids [duplicate]

Accessing the Chatter Attachments Via ContentDocumentLink seems to work fine for project using the query . List<ContentDocumentLink> lstContentDoc = [SELECT ContentDocumentId, ...
0
votes
0answers
20 views

An internal server error has occurred while uploading attachment to email

I am getting this error below while attaching a file to an email in salesforce in the account and person screen. The error shows after i browse the file and after i click "attach to email". Not sure ...
0
votes
0answers
21 views

Corrupted file error after creating Attachment from data(attachment) from Other SalesForce Instance through Rest Api

We are facing issue when we create Attachment record in Apex, using the data that we get from Rest Api from another instance. Tried with Blob.ValueOf(responsebody), ...
0
votes
2answers
34 views

Is there a way to attach a document into an object

I know I can add an attachment into a record. But the issue is, if there is a document object containing a file and I want my record to be able to connect to that document, is there a way to do this? ...
0
votes
1answer
50 views

Trying to clone Attachment to new record via trigger Code not working

I'm trying to clone an attachment on an opportunity to a custom case object via a trigger. My code is creating the case but not cloning the attachment. Is there anything I can do to get this to ...
0
votes
1answer
25 views

Attachment in Salesforce

Having an attachment code <apex:pageBlockSection showHeader="false" columns="2" id="block1"> <apex:pageBlockSectionItem > <apex:outputLabel ...
1
vote
2answers
133 views

how do i create trigger on attachment?

i want to create trigger on attachment object , but i am not able to find it in setup. can anybody suggest way how to do it? i am assuming it from Developer console? Thanks in Advance.
0
votes
0answers
42 views

Using Apex to retrieve a file from an external Restful Web Service

I want to query an external service, get a file, and attach it to an existing Contact. However, I'm having trouble retrieving the document via a REST request. My code is below. Any Suggestions? ...
1
vote
1answer
38 views

Add the attachment with image from static resource and value from text area field as pdf file

I generating the attachment from trigger action, Need to generate the attachment as pdf file, contains image from static resource and value from text area field. I have trying to use blob.toPdf() to ...
0
votes
0answers
39 views

Using NoteAndAttachemnt via SOAP API/SOQL queries

I'm building a SalesForce case management front-end in C#, using a SoapClient built from our company's Enterprise WSDL. I've hit a sticking point in retrieving the upload date for case attachments. ...
0
votes
1answer
107 views

Heap size limit when uploading file using Visualforce page

I have a visualforce page which has control. I am using this to upload a text file. I have property of type Attachment in my controller. Value of inpufile control will be Body of Attachment property. ...
1
vote
1answer
54 views

dataURL to blob

I'm passing the dataURL from JS in the vfp to the extensions class. I'm trying to store that image as an attachment to the custom object. The attachment is uploaded but when I try to open, a "file" ...
8
votes
2answers
249 views

Save attachment with Remote Objects

is it even possible to save attachment with remote objects to salesforce? I tried this: construct remote object model <apex:remoteObjects jsNamespace="MyModel"> ...
1
vote
0answers
32 views

Why is Attachment.ParentId read only?

I'm trying to understand the reason for why is the ParentId field of the Attachment object is not editable after creating the object. Is this something that's going to change in the near future?
1
vote
1answer
89 views

How to create a Visualforce page with attachment to specific record?

I am modifying Jeff Dougles' code found on his 'Customizing attachments' blog to take the concept of creating a way to upload attachments to a custom object. However I'm doing this via sites so no ...
1
vote
2answers
171 views

Upload and download files/attachments

I am building a custom application in Salesforce using HTML. The user who logs into the application should be able to upload multiple documents and download the same once they are uploaded. I want to ...
1
vote
1answer
58 views

regex too complicated error when using split function for less than 1M characters

I am working with an attachment in Salesforce. this is a text file with 7291 rows and each row has 94 columns. I am able to read this attachment record as "Attachment". I am also able to convert ...
0
votes
0answers
29 views

Issue uploading PDF in salesforce

I am trying to upload pdf as an attachment in salesforce, but i am not getting the complete pdf. I have created a model object for an attachment and using it making a save call. All the data is ...
0
votes
1answer
78 views

Send email with excel attachment - Blob variable doesnot exist error

I have a Map. that I built in apex class. I want to put that map output into an excel and send it as attachment. Here's the code that Im using. I get Blob variable doesn't exist error ( in the ...
0
votes
1answer
52 views

Salesforce PHP API Attachment Upload

I am trying to upload an attachment using the following function. public function uploadAttachment($attachmentBody, $attachmentBodyLength, $attachmentName) { $createFields = array( ...
4
votes
2answers
91 views

REQUIRED_FIELD_MISSING, No body specified in the file attachment:

I have a requirement whenever I create a record and upload a word file document in notes and attachment a trigger gets fired which send that attachment to a desired email address. I have written this ...
0
votes
1answer
172 views

Attaching PDF rendered Visualforce pages to Standard Object?

I've created a visualforce page on the Opportunity object that I'm rendering as a PDF. I just started using docusign and would rather not have to generate the doc, attach it to the record and then ...
0
votes
2answers
311 views

Visualforce page to Excel doc with images from attachments

I have an issue with rendering VF page as xls file. I have an apex page with a table, wich consists of some visit data and it's attachments. Attachments has an image content type, so it looks like ...
1
vote
1answer
55 views

How Get Parent Field in Attachment?

Please Help me... Account sObject is Parent of Attachment. Now I want to bring Read-only Field Custom field (isReadOnly__c). SELECT Id, Name, Account.isReadOnly__c FROM Attachment How It Gets ? ...
2
votes
2answers
92 views

Why doesn't File Location Lookup show attachments of Opportunity?

My opportunity has some attachments. I would like to send them via email. If I hit on "Attach File" button of "Send an Email" page, then File Location lookup filter window, dialog appears, however I ...
0
votes
1answer
31 views

Best way to migrate binary attachments from one org to another

Currently I am using apex data loader with bulk api enabled and batch size =1 . But its giving me failed to create batch when i try to import 1000 files with each size around 100kb. I need to ...
0
votes
1answer
36 views

Size of an attachment?

Is there any api in salesforce to find out the size of an attachment? I am creating package.XML in Salesforce and I would like to make sure that the size is less than 3 MB.
1
vote
0answers
38 views

Files getting corrupted using apex:inputFile

I am using apex:inputFile to upload documents in a vf page, but sometimes the file is getting saved as .dat file. This is not happening always. I am not rerendering the apex:inputfile and we are not ...
0
votes
0answers
59 views

Attach a dynamic PDF page

I have a requirement to create a pdf page in a new window based on dynamicly created records of custom object Incident__c when an User clicks a custom button. Then mail the PDF to the User. Please ...
1
vote
0answers
53 views

Notes and Attachments on Contacts in Customer Community

I don't see Notes and Attachments related list on Contacts. From page 24 Communities Implementation guide it says Customer Users don't see Notes and Attachments related list on accounts or contacts ...
0
votes
2answers
324 views

Salesforce isn't handling Base64 Encoded attachments uploaded via Rest API

I'm uploading an image as an attachment to an object in Salesforce via Rest API v32. My HTTP request body looks like so: --boundary_string_1416597802788 Content-Disposition: form-data; ...
0
votes
1answer
116 views

Move EmailMessage's attachments from one Case to another

Here's my use case: Existing logic: When an email with attachment is processed by email2case handler, case (Case A) gets created followed by email message and attachment resides with the email ...
2
votes
1answer
34 views

How can I be notified or change case status if a community user adds an attachment to a case?

I'd like to be notified (or at least change case status) if/when a customer adds an attachment via the community portal. Is that possible? As per this idea here, it sounds like it's not available. ...
0
votes
0answers
125 views

Creating email template using Apex class and dynamically attach a file from notes and attachments

Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage(); mail.setToAddresses(emailList); String subject='Trend Analysis Report-PI'; transient Messaging.EmailFileAttachment [] ...
0
votes
0answers
83 views

Salesforce1 on Iphone6 does not show attachments

One of our users has an iPhone 6 and when using Salesforce1 the attachments on for example an Opportunity cannot be opened. The screen shows the pdf's title, that's all. Is there way to solve this? ...
0
votes
1answer
173 views

View office file in visualforce page

Is there a way to view a microsoft office document in a visualforce page? The files are Attachments of a custom object and I need to open a viewer for them. I tried to use the field Body of the ...
1
vote
2answers
99 views

Email Services Binary Attachment Not Working

I am using the Email Services in SFDC, and I am not able to get the attachments I attach to the emails to be uploaded to the new record that is being created. I built my APEX class off of the sample ...
2
votes
0answers
359 views

Upload an Attachment via the Rest API

I'm having an issue uploading attachments via the REST API. When trying to upload attachment data (i.e. data about the attachment and the associated base64 binary data) I'm getting a 400 result (Bad ...
0
votes
1answer
79 views

Can we download salesforce attachment with Python and Beatbox?

I have found the useful API from http://www.pocketsoap.com/beatbox/, From my understadning we can use beatbox for attachment uploading to salesforce. However how we downloading mass attachemnt via ...
2
votes
1answer
45 views

Render if attachment exists

I would like to display an image attachment on my visualforce page (via standard controllers). What I would like to add is a render statement to only show this the attachment exists? Right now the ...
2
votes
2answers
93 views

Search Text in a PDF file (Attachments)

I am not able to search text in a pdf file tied to attachments(Notes and Attachments) using apex.Here is my apex code. Pdf file contains 'County' text but it doesn't goes into if loop. ...