Find your content:

Search form

You are here

How to attach database.com Images/ Documents into relevant Salesforce.com records

 
Share

I have a custom object in database.com. I need to attach the particular Images / Documents for particular records.

how can we relate the particular record with the attachment in database.com.

A visualforce page has been developed in salesforce.com for the login of the database.com users(database.com credentials) and user will be pulling the records from the database.com for searching particular images with description.

Please help !!!

Thanks


Attribution to: Allwin

Possible Suggestion/Solution #1

This seems very similar to this question is it possible store images and documents in database.com.

But focussing in on attachments, an Attachment object has a ParentId field that is the Id of the object (e.g. Contact) that it is attached to. In normal Salesforce there is standard user interface to upload attachments for an object; if that is not available in Database.com then you will have to do that programatically.

In normal Salesforce, an Attachment can be viewed (assuming the request includes authentication information) using a URL of this form "/servlet/servlet.FileDownload?file=00Pi0000005EOWB" where the ID is the ID of the Attachment.

The Attachment object can't be customised, but does have Name and Description fields available (and can be used for various content types such as images and documents with the type recorded in the ContentType field).

I do not understand how your Salesforce Visualforce login page will allow Database.com access. Or perhaps you are looking to store the images/documents in Database.com and relate them to objects in Salesforce.com. So if either of those are the central point of your question, perhaps you can clarify the question and then hopefully someone else can answer.


Attribution to: Keith C
This content is remixed from stackoverflow or stackexchange. Please visit https://salesforce.stackexchange.com/questions/31604

My Block Status

My Block Content