You need to sign in to do that
Don't have an account?
Snovakovich
Insert attachment with REST API
I'm using C# and SF REST API. I have no problems so far get-ing and inserting some custom data from SF (Accounts,etc..). But now a have to insert PDF attachment using REST API, and i'm stuck. I's it even possible? And if it is how? Any help will be appreciated.
You can either base64 encode your binary data and include it when you post a new attachment to /sobjects/attachment or you can do a multipart request. See the documentation for details: http://www.salesforce.com/us/developer/docs/api_rest/Content/dome_sobject_insert_update_blob.htm
Snovakovich - did you ever figure out how to add attachments using C# and the Rest API? I've been able to figure out how to create/update data using C# and the Rest API but I just received a new requirement to insert attachments. If you were able to figure this out and can post any code that would be helpful, it would be very much appreciated. Thanks.
the only package you need are System.Net.Http and System.IO.
is now a dead link. Thanks Salesforce!
Hi,
Follow this link. Works fine for me :