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

learn more… | top users | synonyms

0
votes
2answers
28 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
36 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
17 views

Attachment in Salesforce

Having an attachment code <apex:pageBlockSection showHeader="false" columns="2" id="block1"> <apex:pageBlockSectionItem > <apex:outputLabel ...
1
vote
2answers
121 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
32 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
20 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
31 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
68 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
49 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" ...
3
votes
1answer
104 views
+50

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
25 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
62 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
82 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
36 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
25 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
55 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
34 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
70 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
96 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
201 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
44 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
71 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
24 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
30 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
34 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
48 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
45 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
235 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
77 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
30 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
82 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
59 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
126 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
78 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
234 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
73 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
42 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
72 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. ...
1
vote
1answer
249 views

Can we open files/attachments in Salesforce1 without enabling Chatter?

It appears the only way to open files in Salesforce1 is via "Salesforce Files" - previously called, "Chatter Files" which is tightly coupled to Chatter. When creating Chatter files, it seems to piggy ...
2
votes
1answer
40 views

Un-grey Attachments in Opportunities

How do I enable this Attachment? Right now it's greyed out. What are the steps to enable this feature so I can upload an attachment upon creating a new opportunity?
1
vote
1answer
78 views

Visualforce template with page breaks

I have a opportunitylineItem list, so I create a visualforce email template to send like attachment the table with the opportuntiy products. I need a dynamically page break if I have more than 6 rows ...
0
votes
1answer
93 views

Case Attachments on the Account Attachments Related List?

I noticed that Case Attachments appear in the Account 'Notes & Attachments' section with a 'Related to' link. However, when we have hundreds of Cases for each Account, the important Attachments ...
0
votes
1answer
141 views

Code in a @future method not working

I am trying to write a trigger that will transfer attachments from a Task object to the related Opportunity object from emails & attachments using Salesforce for Outlook. I have the basic trigger ...
4
votes
0answers
81 views

Is forcetk accessible in Communities

I am using forcetk to upload the files(attachments) in VisualForce page and its working fine. But when I access same page in Community not able to upload the file as I am getting the "503 Service ...
4
votes
1answer
141 views

Upload zip file in visualforce page

Can anyone tell me how to upload a zip file in visualforce page? My use case is: I have to upload a zip file which contains 10 pdf files and assign these 10 files to 10 contacts For that how can I do? ...
1
vote
1answer
70 views

I have a requirement where in “onclick” of a button I need to attach all files in Notes & Attachments

I have a requirement where in "onclick" of a button in Salesforce I need to open a new mail in outlook and attach all attachments available in "Notes & Attachments" related list. Is it possible? ...
1
vote
1answer
76 views

Adding custom Email button

I am displaying an image (saved in Static resource) on a click of button on Lead's detail page. I need to add a button to send an email which automatically attaches this image and should have Lead's ...
3
votes
2answers
290 views

How to upload 6Mb attachment in a custom Apex Rest service (heap size issue)

I have a .Net app, which works with SFDC via REST API. Not so long time ago we faced with big files. Usually they were around 2-3 Mb and it was OK for both .Net app and SFDC. Now there are some ...
3
votes
1answer
510 views

Visualforce page to render attachment.body

Im trying to build a visualforce page to render as an attachment. It seems doable but im getting lost in the content encoding issues.. here is what i have so far Visualforce Page: <apex:page ...
1
vote
2answers
79 views

when rendering as pdf some of the image type attachment is not properly displayed whereas rest are fine

when rendering as pdf some of the image type attachment is not properly displayed whereas rest are fine. Please find my code here : <apex:page controller="Attachments_11" renderas="pdf" > ...