Yesterday we saw how to upload files to Documents and new revisions of files to Documents via the SugarCRM Web Services API. Note records also support uploading an attachment to them, which we’ll see how to do in today’s post.
First thing’s first, let’s create a Note record for this example.
Where with the Documents module we used the set_document_revision method for doing the upload, the Notes module has it’s own method for doing this with the set_note_attachment method. See the below code snippet for how to do this.
Come back next week and we’ll see how to download files stored in the Documents and Notes module in Sugar via Web Services.