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

learn more… | top users | synonyms

1
vote
1answer
9 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
5 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
39 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
36 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
27 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
22 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
14 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
22 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
28 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
42 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
28 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.
1
vote
2answers
78 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
17 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
42 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
29 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
11 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
63 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
52 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
36 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
22 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
58 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
29 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
15 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
12 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
47 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
38 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
73 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
82 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
18 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
24 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
40 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
132 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
96 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
28 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
26 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
18 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
84 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
41 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
95 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
40 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
152 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
46 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
51 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
44 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
101 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
35 views

Attachment in Salesforce

Having an attachment code <apex:pageBlockSection showHeader="false" columns="2" id="block1"> <apex:pageBlockSectionItem > <apex:outputLabel ...
3
votes
2answers
231 views

how do i create trigger on attachment?

I want to create trigger on the Attachment object, but am not able to find it in setup. Can anybody suggest how to do it? I am assuming it can be done from Developer console, but I am not sure of ...
0
votes
0answers
90 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
75 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 ...