Find your content:

Search form

You are here

How to Get / Update an existing attachment using C#

 
Share

Is possible to Get / Update an existing Attachment using C#?

If it is can any one share some sample code or resources?


Attribution to: Haridharan

Possible Suggestion/Solution #1

A quick Google search for 'c# salesforce attachments' returns results like:

https://stackoverflow.com/questions/12525032/add-attachment-for-new-contact-in-salesforce-using-c-sharp

http://www.joshuapyle.com/2012/09/add-attachment-for-new-contact-in-salesforce-using-c/

These all cover adding / updating an attachment.

Retrieving will work the same as getting any other object data and then just base64 decoding the file body field.

More info on the attachment object can be found here: http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_attachment.htm


Attribution to: Jon Hazan
This content is remixed from stackoverflow or stackexchange. Please visit https://salesforce.stackexchange.com/questions/1877

My Block Status

My Block Content