You need to sign in to do that
Don't have an account?

can i get record attachment content in to major record
Hi,
I have a custom object which has attachments.
I want to take the recent attachment and copy that link on to my record (custom field).
How can i do that??
Hi Ramesh,
Try this,
When requested from a valid session (i.e. after someone has logged in to salesforce) this URL (that includes the ID of the attachment) works:
/servlet/servlet.FileDownload?file=00PM0000001fH6h
If you create a text formula field on an object of this form:
HYPERLINK('/servlet/servlet.FileDownload?file=' + AttachmentId__c, 'View', '_blank')
http://salesforce.stackexchange.com/questions/17515/how-to-get-download-link-url-from-attachment-file-in-salesforce
Also, see the links below for more info,
http://stackoverflow.com/questions/11395148/related-content-stored-in-which-object-how-to-create-related-content-recor
http://stackoverflow.com/questions/5395682/where-do-i-add-a-trigger-for-notes-and-attachments-in-salesforce-com
http://sfdc.arrowpointe.com/2012/11/06/link-chatter-files-to-related-objects/
Add a post if there is something else that you are looking for.
Regards,
Ashish
All Answers
Hi Ramesh,
Try this,
When requested from a valid session (i.e. after someone has logged in to salesforce) this URL (that includes the ID of the attachment) works:
/servlet/servlet.FileDownload?file=00PM0000001fH6h
If you create a text formula field on an object of this form:
HYPERLINK('/servlet/servlet.FileDownload?file=' + AttachmentId__c, 'View', '_blank')
http://salesforce.stackexchange.com/questions/17515/how-to-get-download-link-url-from-attachment-file-in-salesforce
Also, see the links below for more info,
http://stackoverflow.com/questions/11395148/related-content-stored-in-which-object-how-to-create-related-content-recor
http://stackoverflow.com/questions/5395682/where-do-i-add-a-trigger-for-notes-and-attachments-in-salesforce-com
http://sfdc.arrowpointe.com/2012/11/06/link-chatter-files-to-related-objects/
Add a post if there is something else that you are looking for.
Regards,
Ashish
Yeah a trigger on attachment and a formula field on my object solved this.
http://salesforce.stackexchange.com/questions/17515/how-to-get-download-link-url-from-attachment-fil...
This link helped me.
What kind of trigger did you used? All of my triggers that I write don't work on the attachment for the custom object....
Hope you have some suggestions!
Kind regards,
Rachid