+ Start a Discussion

Case, Attachments and Visualforce Templates

Hi Guys,


This is my first post so any help you could throw my way would be very helpful.


So heres the issue. Currently I have emails coming into Salesforce which are being pushed through EmailtoCase (On Demand) which strips the data line by line in the body plus any attachments and adds that into various custom fields in a case.


So far so good. However, now on creation of that case I want to send an email OUT of salesforce with some of this information plus the attachment from the case. There will only ever be one attachment of each case. The attachments will always be images.


The fields are easy. The attachment bit isn't.  With visualforce it seems you can create attachments from data but I don't want to do that. I want to attach an existing attachment and send it out within a template. Can anyone point me in the right direction of the correct visual code that checks the case for attachments and attaches it to an outgoing email.


So salesforce have just told me that this is impossible with Visual Force.


Never mind - back to the drawing board.