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

learn more… | top users | synonyms

0
votes
0answers
6 views

Attachment link asking for Credentials (login page) every time

I have one org where I have one domain created so that base org url after login becomes something like - https://domainname.eu5.visual.force.com Now my attachments are saved in the form of ...
0
votes
3answers
40 views

Move Attachement from Task to Lead/Account Parent Id

i am using email to salesforce, here, whenever an customer is sending email to a specific email it will be automatically forwarded to email to salesforce email. Then the email will be added as a Task ...
2
votes
1answer
17 views

when to use enctype as multipart/form-data

I was looking for example to upload attachment via VF page. There are multiple examples(similar code) available online, with some making use of enctype="multipart/form-data. While other directly ...
2
votes
1answer
41 views

How to upload attachments exported from salesforce back to salesforce?

I have to export around 25k attachments from salesforce, change parentId and upload back to salesforce. Can this be done using data loader?. I exported data and it gives attachment body as binary ...
2
votes
2answers
65 views

INVALID_ID_FIELD when upserting an attachment through Bulk API

The situation is as follows: In my Salesforce org, I have a contact, let's call it Humpty Dumpty, and I'd like to attach a file to it, let's call it cooking.txt, but there are some rules: If there ...
1
vote
1answer
12 views

Under what circumstances will SalesForce substitute an email attachment on an outgoing message?

I've noticed that occasionally, SalesForce will replace a file attachment I send via email with an html attachment that auto-refreshes and downloads the file via browser. So for example, if I ...
1
vote
1answer
18 views

Accessing previously attached files in visual workflow

I'm using the Visual Cloud Workflow Designer to build a flow that will help users work cases. I need to provide them with access to the files already attached to the case they're currently working ...
1
vote
1answer
25 views

How do I display an image that is an attachment on an sObject?

I know how to query the image with SOQL, but how can I get the actual file to display on a page? Not sure it makes a difference, but I would be retrieving the image via the REST API.
0
votes
1answer
42 views

Get image attachments with apex

I would like to display the the first image attachment for a record in my visualforce page. The visualforce page uses a standard controller to get the record data and I've built an extension to ...
1
vote
1answer
52 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
21 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
18 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
14 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
71 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
29 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
66 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
37 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
91 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
7 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
39 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
32 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
40 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
67 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
28 views

Attachment in Salesforce

Having an attachment code <apex:pageBlockSection showHeader="false" columns="2" id="block1"> <apex:pageBlockSectionItem > <apex:outputLabel ...
1
vote
2answers
158 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
68 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
57 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
45 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
158 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
74 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
335 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
47 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
144 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
401 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
100 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
32 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
125 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
87 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
119 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
326 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
420 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
83 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
143 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
36 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
40 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
42 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
69 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
80 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
477 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
169 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 ...