function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
Can anyone provide some sample code showing how to retrieve an attachment from salesforce and make it accessible via a webpage link to a client.
Thanks
Hi ssuede7,
Is that the best approach, or do you just want the linke to the attachment?
Hi, I would the links of the file to download preferably in .NET. Thanks
sq
Hi sq,
The link to the attachment detail page looks like this:
https://na1-api.salesforce.com/00P30000000kDCz
If you put your mouse over the "Click here to view this file" link you will see a url like this:
https://na1-api.salesforce.com/servlet/servlet.FileDownload?file=00P30000000kDCz
This is the direct link to download the attachment.
Hi ssuede7,
Is that the best approach, or do you just want the linke to the attachment?
Hi, I would the links of the file to download preferably in .NET. Thanks
sq
Hi sq,
The link to the attachment detail page looks like this:
https://na1-api.salesforce.com/00P30000000kDCz
If you put your mouse over the "Click here to view this file" link you will see a url like this:
https://na1-api.salesforce.com/servlet/servlet.FileDownload?file=00P30000000kDCz
This is the direct link to download the attachment.