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

learn more… | top users | synonyms

2
votes
1answer
17 views

Unrecognized field “attachment” when POSTing a Chatter FeedItem with a file

I'm attempting to create a new Chatter FeedItem using the Salesforce REST API. I'm constructing a multi-part request with the following parameters: { "feedElementType": "FeedItem", "subjectId": ...
1
vote
1answer
15 views

How to attach PDF files into an email

We have a visualforce page, we want to make the visualforce page convert to PDF and saved in document and after that we want to attached the body/document as PDF on email. The problem is that the ...
2
votes
1answer
12 views

Save Pdf as a attachement in Notes and attachment using apex class(Without clicking on Button)

My question is regarding Save Pdf as in Notes and Attachment under the record, So, my issue is, First controller is fill the document(PDF) and Second controller can Save that PDF using that first ...
1
vote
0answers
13 views

Copying attachments from GoogDrive into new Work Order related to Opportunity [on hold]

Working on a project that wants to copy attachments from an Opportunity into a Work Order generated using a button within the Opp in a custom 'Work Orders Generated by an Opportunity' object. Client ...
0
votes
0answers
11 views

Files data load is not working in Salesforce

We are trying to load attachments in Salesforce using SSIS service. we have files stored in particular location in our server and SSIS is just picking those files from that location and inserting into ...
0
votes
0answers
8 views

Convert attachment to see it in browser like content file

I need to implement the following feature: User uploads a document attachment (.docx, .pdf, .txt) to contact record. Contact details layout should show a content of that attachment. I know how to ...
2
votes
1answer
12 views

How to attach an attachement in webtocase without using controller?

I need to add an attachment while creating the case . I mean , while submitting the webform the attachment should be added along with the case creation. Can anyone please tell me how to do this ?? ...
1
vote
0answers
18 views

embed a VF page inside a flow

We have a requirement of exposing e-signature capture and document/image upload functionality in a Visual workflow. Easy Peasy if it was required to be done after the flow. I can embed the flow in a ...
0
votes
1answer
21 views

Cant see attachments attached to emails

We have email-to-case set up and some emails contain attachments. Salesforce labels what emails have attachments, but they do not give us the option to view the attachments. How can we view these ...
0
votes
1answer
35 views

Trigger on Attachment not firing when doing Email to Case

Basically i have an requirement which has to convert attachments in to feed attachments which is working fine when i write trigger on attachment object. But it is giving me Email to case related ...
1
vote
1answer
32 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
22 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
58 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
31 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
30 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
27 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
72 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
41 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
vote
1answer
50 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
50 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
37 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
26 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
61 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
34 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
61 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
102 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
37 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
240 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
28 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
119 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
52 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
18 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
170 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
79 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
65 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
34 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
80 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
39 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
19 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
20 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
55 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
57 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
119 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
106 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
21 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
32 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
49 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
217 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
127 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 ...