B
Bill Wood
Guest
The language you are writing the client in does not particularly matter - what matters is which API you are using. For external clients, the APIs can be SOAP, or REST (in particular, HTTP(s)/JSON and HTTP(s)/XML. ). From your code it seems you are using the JSON REST. My other point is that an "attachment" to an object in Rollbase is described as a File Upload in the UI (because if a user added a document to an object in the UI, it is done via a File Upload field. My reading of Chapter 15 (approximately on p.55) says that you should try the setDataField method. I dont know if you already tried it, but this provides a way to upload a base64 encoded byte stream as a named File attachment with Content-type to an object. The"create2" method in your source snippet does not allow setting file name and content-type on individual object fields.
Continue reading...
Continue reading...