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
Could somebody provide me with sample code on how to upload attachments to cases in asp or aspx?
Attachment a = new Attachment();
a.parentId = 'the id of the case';
a.filename = 'foo';
a.extension = '.bar';
a.body = fileContentsAsByteArray(someFile);
SaveResult sr = binding.create(new SObject [] {a})[0];
if (sr.success)
....
Does anyone know how to do this with PHP?
Thanks so much!
Attachment a = new Attachment();
a.parentId = 'the id of the case';
a.filename = 'foo';
a.extension = '.bar';
a.body = fileContentsAsByteArray(someFile);
SaveResult sr = binding.create(new SObject [] {a})[0];
if (sr.success)
....
Does anyone know how to do this with PHP?
Thanks so much!