We talked last week about how to create a new Document record and upload versions of the document to Sugar via SugarCRM’s Web Services API. Today, we’ll see how to download a revision of a document in a Document record.
The method we’ll use here is get_document_revision, which will return the file for the given Document Revision ID passed to it. Here’s how it works to grab a revision and save the file on your local machine.
Come back tomorrow to see how to download Note attachments.