You need to sign in to do that
Don't have an account?
HoustonAPlus
Query attachments with zksforce
Is there a simple example of querying attachments from a contact record using zksforce?
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
Is there a simple example of querying attachments from a contact record using zksforce?
ZKQueryResult *qr = [client query:@"Select id,name from attachment where parentId='contactId'"];
All Answers
ZKQueryResult *qr = [client query:@"Select id,name from attachment where parentId='contactId'"];
Thanks! but if the body is string of an image data, is there any gotchas I should be aware of? Thanks again
You just need to base64 decode the string returned by body. There's various options, I normally use this approach http://www.dribin.org/dave/blog/archives/2006/03/12/base64_cocoa/