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

learn more… | top users | synonyms

1
vote
1answer
21 views

Contacts/ Notes & Attachments

Is it possible to have all the 'Notes and Attachments' from the Account Object to be displayed on each subsequent Opportunity it is related to automatically- similar to a related list? Also, is it ...
0
votes
0answers
14 views

Getting the email message in the form it was written(in english,not binary or any other encoding tech) in apex

I am writing a trigger on attachment where I need to check whether the value of a field of the parent custom object is contained in the email subject line of the email added as an attachment ...
2
votes
2answers
43 views

Email sending - multiple attachments

I need to attach multiple attachment through url when doing Send An Email. When I press a custom button through vfpage, it redirects to url from there I can send email with attachment. I need to send ...
2
votes
1answer
24 views

Sending a quote and an attachment by email

Is it possible to add a document to the "Email Quote" button from the Quote object? Our sales team need to send an intro.pdf with the quote object. Using URL Hacking, I am only able to add a ...
1
vote
0answers
23 views

Salesforce Attachments before/after inset trigger: ContentType filed value is not available

I need to write a trigger in order to prevent users from uploading some predefined file types. (Please note that I don't want to use "File Upload and Download Security" option for some other reason) ...
0
votes
1answer
23 views

weird behaviour of insert when doing calling before getContent() call?

I am trying to generate multiple documents(which are VF page rendered as Word doc), by iterating over a map. As my first step, i am reading a report, generating a map(where key is a string and value ...
3
votes
1answer
24 views

How to force an attachment if 'Attached Bid'=TRUE?

I need to force users to include an attachment if a field called 'Attached Bid' on a custom object is equal to true. No attachment is necessary if =false. I'm understanding that I'll need a trigger ...
1
vote
3answers
60 views

REQUIRED_FIELD_MISSING, No body specified in the file attachment

I'm getting error when trying to send visualforce page as email attachment. public with sharing class PdfEmailController { // public ID PAId {get;set;} // public String email {get;set;} public ...
2
votes
1answer
30 views

Attach Multiple PDF files to an email

Currently we have Sales Invoice custom object and we want to create "Email" list button that will send email to the "invoice_email" field (lookup to contact). I know how to send 1 invoice pdf per ...
-1
votes
0answers
16 views

Create z zip attachment via SOAP API

I have to create a zip file in servlet's code and insert it to Salesforce as an attachment. The file needs to be uploaded to Salesforce using enterprise API and SOAP message ( large files up to 25MB). ...
1
vote
1answer
45 views

rerender input file losing file.?

I am rendering <apex:inputfile> by adding a new row but I am losing file when I click add row button. I am able to add a new row but the path is lost. Please help! <apex:repeat ...
3
votes
1answer
45 views

Possible to trigger an Outbound Message upon Attachment uploaded with specific naming syntax? [closed]

Good afternoon! Looking for broad idea collection around the concept of triggering an Outbound Message upon an upload of an Attachment -with either a specific filename or a certain naming syntax- to ...
2
votes
0answers
34 views

Centralize Object Initialization - (Insert Event with Attachment on same code)

I have a piece of code that sets a Boolean (has_Attachment__c) field to true in an After Insert context variable is executed in an Event in which an Attachment is inserted on the same time. The code ...
1
vote
1answer
24 views

Attach Files to sObjects that don't offer standard support for it

I'd like to give users the ability to attach files to the Opportunity Product sObject which doesn't inherently support file attachments. How do I add that ability?
1
vote
1answer
29 views

Attachment download link

I am displaying attachments to the screen using an iFrame <apex:iframe src="{!URLFOR($Action.Attachment.Download, att)}" html-class="abCSS" height="400px" width="400px"/> Some of the ...
0
votes
1answer
28 views

Inserting Feed-Item with Attachment for Community

I am trying to inserting Feed-Item with Attachment in Production and in Sandbox separately for community users. Community is active and my customer profile is added to the community. I know that I ...
2
votes
1answer
45 views

Uploading attachments using ForceTk

Please suggest me how to put attachments for a record under notes and attachments using forceTk, currently i'm using the following code and it creates attachments, but i'm not sure how to link these ...
1
vote
1answer
69 views

Is It Possible to Send Attachment Body Through APEX Callout?

I've been struggling with a problem for quite a while so I figured I would take a set back and examine the bigger picture. Is it possible to use Salesforce APEX trigger to get the body from an ...
-1
votes
2answers
33 views

I have to Extract Attachments from my ORG

I have to export attachments and send a CSV to a sister company so they upload this there database. Any help around this would be highly welcomed.
2
votes
2answers
165 views

Images are fetched from attachments for Visualforce page rendered as PDF displaying broken images

I am trying to fetch the images from the attachments and trying to display these images in a visualforce page which is rendered as pdf. But in the pdf I am getting broken images. If I remove the ...
0
votes
0answers
23 views

Write attachment from Salesforce callout to node js heroku server?

I have a set up that triggers on a file update/insert/delete. What I want to happen is for the trigger to make an HTTP Post callout to my node js application hosted on Heroku and then write the ...
0
votes
0answers
73 views

Export Parsed Data To CSV Format From Visualforce?

I re-titled this so as to make it simplaer in concept - JSON is not directly the issue, it's the ability to export data that appears in a VF page. We have a situation where, when Leads (or Accounts) ...
1
vote
1answer
42 views

Tooling API - query Attachment

I'm using Salesforce Tooling API in my C# application. When I'm trying to run the query: var res = sforce.query("select id from Attachment where parentid = '" + id + "'"); I get the following ...
0
votes
1answer
15 views

Detecting a change in Attachments for Cases using Streaming API

I'm not sure if what I am doing is possible but I would like to find out. I am connecting to my sandbox environment through the Force.com Streaming API (and Oauth2) using a Nodejs server and the ...
0
votes
3answers
105 views

Displaying attachments on visual force page

I need to display attachments on a visual force page for the Case object. This is the code I am using. I had it working for awhile, but it somehow broke down. It gets all the attachments, but it will ...
0
votes
1answer
65 views

Trigger on Attachment to insert FeedItem

I have been trying to get a trigger to fire when a new attachment is inserted (After insert), the ParentId is Event for that attachment, and the Event is related to an Account. So, if anyone inserts ...
2
votes
1answer
51 views

VisualForce query for URL in the attachment's body

There are a few posts that describe to display the attachment's body through controller. My requirement is a little different- parse the contents and check for URL in the Attachment's body and display ...
2
votes
1answer
28 views

How to get CONFIRMATIONTOKEN to delete attachment from VisualForce page?

I'm trying to create a custom attachments list for the Account object via a visualforce page to replace the standard attachments related list Salesforce provides, which makes finding an attachment ...
1
vote
1answer
68 views

One Class to control all Trigger. - Dispatcher

I'm having some problems when trying to make a number of classes and triggers to run on a dispatcher class. The components for this architecture are the following: One -TriggerDispatcher class. ...
2
votes
1answer
36 views

Upsert Attachment object

When upserting the fields of Attachment such as Name, upsert works while upserting body like: SObject upsertDoc1 = new SObject("Attachment"); upsertDoc1.setField("Name", ...
0
votes
1answer
18 views

How can I configure the SF to notify the customer when attachment is too large and the email failed?

I wanna know about NDR (non-delivery report) in SF. Firstly, what's the maximum size per file in attachment? When these are too large, how can i notify the customer automatically? This feature ...
0
votes
0answers
16 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
50 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
46 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
94 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
94 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
20 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
28 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
43 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
194 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
112 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
38 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
27 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
22 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
91 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
42 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
107 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
47 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
182 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, ...